cvs: phpweb /include site.inc
| From: | Gabor Hojtsy | Date: | Thu, 06 Mar 2003 18:05:55 +0000 |
| Subject: | cvs: phpweb /include site.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-16157@lists.php.net to get a copy of this message | ||
goba Thu Mar 6 13:05:55 2003 EDT
Modified files:
/phpweb/include site.inc
Log:
Fallback to "en" in case the language set by mirror site (or provided by
master.php.net is not supported)
Index: phpweb/include/site.inc
diff -u phpweb/include/site.inc:1.241 phpweb/include/site.inc:1.242
--- phpweb/include/site.inc:1.241 Sat Mar 1 11:14:34 2003
+++ phpweb/include/site.inc Thu Mar 6 13:05:54 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: site.inc,v 1.241 2003/03/01 16:14:34 goba Exp $
+// $Id: site.inc,v 1.242 2003/03/06 18:05:54 goba Exp $
// Define $MIRRORS array, and some constants
include_once 'mirrors.inc';
@@ -173,6 +173,12 @@
if (isset($LANGUAGES[$_SERVER['MIRROR_LANGUAGE']])) {
$MIRRORS[$MYSITE][6] = $_SERVER['MIRROR_LANGUAGE'];
}
+}
+
+// Fallback to English in case the language
+// set is definitely not supported
+if (!isset($LANGUAGES[$MIRRORS[$MYSITE][6]])) {
+ $MIRRORS[$MYSITE][6] = "en";
}
// Override central stats information if specified in vhost