cvs: phpweb /include langchooser.inc
| From: | Gabor Hojtsy | Date: | Fri, 25 Jul 2003 16:54:08 +0000 |
| Subject: | cvs: phpweb /include langchooser.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-19543@lists.php.net to get a copy of this message | ||
goba Fri Jul 25 12:54:08 2003 EDT
Modified files:
/phpweb/include langchooser.inc
Log:
Fix a bug, which made language specifying shortcuts
(eg. /it/books) not work.
Index: phpweb/include/langchooser.inc
diff -u phpweb/include/langchooser.inc:1.30 phpweb/include/langchooser.inc:1.31
--- phpweb/include/langchooser.inc:1.30 Wed Jun 4 04:38:31 2003
+++ phpweb/include/langchooser.inc Fri Jul 25 12:54:07 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: langchooser.inc,v 1.30 2003/06/04 08:38:31 goba Exp $
+// $Id: langchooser.inc,v 1.31 2003/07/25 16:54:07 goba Exp $
/*
@@ -61,11 +61,11 @@
if (preg_match("!^/(\\w{2}(_\\w{2})?)/!", $_SERVER['REQUEST_URI'], $flang))
{
// Put language into preference list
- $flang = language_add($flang[1], $languages);
+ $rlang = language_add($flang[1], $languages);
// Set explicity specified language
if (empty($explicitly_specified)) {
- $explicitly_specified = $flang;
+ $explicitly_specified = $rlang;
}
// Drop out langauge specification from URL, as this is already handled