cvs: phpweb /include langchooser.inc
| From: | Gabor Hojtsy | Date: | Sat, 17 May 2003 09:13:04 +0000 |
| Subject: | cvs: phpweb /include langchooser.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17755@lists.php.net to get a copy of this message | ||
goba Sat May 17 05:13:04 2003 EDT
Modified files:
/phpweb/include langchooser.inc
Log:
Fix the inconsistencies introduced by the last two
fixes. We use $languages and not $lang here...
Index: phpweb/include/langchooser.inc
diff -u phpweb/include/langchooser.inc:1.22 phpweb/include/langchooser.inc:1.23
--- phpweb/include/langchooser.inc:1.22 Thu May 15 17:16:21 2003
+++ phpweb/include/langchooser.inc Sat May 17 05:13:03 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: langchooser.inc,v 1.22 2003/05/15 21:16:21 jacques Exp $
+// $Id: langchooser.inc,v 1.23 2003/05/17 09:13:03 goba Exp $
/*
@@ -42,11 +42,11 @@
function language_choose_code()
{
- global $_REQUEST, $_SERVER, $_COOKIE, $langs;
+ global $_REQUEST, $_SERVER, $_COOKIE;
// Contains all the languages picked up by the
// process in priority order (without repeating codes)
- $languages = array(); /* $langs = array(); */
+ $languages = array();
// Default values for languages
$explicitly_specified = ''; $selected = '';
@@ -162,7 +162,7 @@
}
}
*/
- $selected = $langs[0];
+ $selected = $languages[0];
// Return with all found data
return array($selected, $explicitly_specified, $parsed_langs);