cvs: phpweb /include langchooser.inc
| From: | Gabor Hojtsy | Date: | Fri, 08 Aug 2003 14:04:13 +0000 |
| Subject: | cvs: phpweb /include langchooser.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20004@lists.php.net to get a copy of this message | ||
goba Fri Aug 8 10:04:13 2003 EDT
Modified files:
/phpweb/include langchooser.inc
Log:
Do not allow non-online languages as user preferred ones
Index: phpweb/include/langchooser.inc
diff -u phpweb/include/langchooser.inc:1.31 phpweb/include/langchooser.inc:1.32
--- phpweb/include/langchooser.inc:1.31 Fri Jul 25 12:54:07 2003
+++ phpweb/include/langchooser.inc Fri Aug 8 10:04:13 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: langchooser.inc,v 1.31 2003/07/25 16:54:07 goba Exp $
+// $Id: langchooser.inc,v 1.32 2003/08/08 14:04:13 goba Exp $
/*
@@ -185,7 +185,8 @@
// Append language code in priority order if it is not
// there already and supported by the PHP site. Try to
// lower number of file_exists() calls to the minumum...
- if (!in_array($langcode, $langs) && isset($LANGUAGES[$langcode])) {
+ if (!in_array($langcode, $langs) && isset($LANGUAGES[$langcode])
+ && !isset($INACTIVE_ONLINE_LANGUAGES[$langcode])) {
$langs[] = $langcode;
}