cvs: phpweb /include site.inc
| From: | Gabor Hojtsy | Date: | Sat, 18 Jan 2003 15:14:00 +0000 |
| Subject: | cvs: phpweb /include site.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15124@lists.php.net to get a copy of this message | ||
goba Sat Jan 18 10:14:00 2003 EDT
Modified files:
/phpweb/include site.inc
Log:
Override central language setting with local language preference...
Index: phpweb/include/site.inc
diff -u phpweb/include/site.inc:1.238 phpweb/include/site.inc:1.239
--- phpweb/include/site.inc:1.238 Wed Jan 8 04:05:31 2003
+++ phpweb/include/site.inc Sat Jan 18 10:13:59 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: site.inc,v 1.238 2003/01/08 09:05:31 goba Exp $
+// $Id: site.inc,v 1.239 2003/01/18 15:13:59 goba Exp $
// Define $MIRRORS array, and some constants
include_once 'mirrors.inc';
@@ -166,6 +166,13 @@
$MIRRORS[$MYSITE] = array("xx", $MYSITE, FALSE, $MYSITE, MIRROR_VIRTUAL, FALSE,
"en", MIRROR_OK);
}
+}
+
+// Override mirror language with local preference
+if (isset($_SERVER['MIRROR_LANGUAGE'])) {
+ if (isset($LANGUAGES[$_SERVER['MIRROR_LANGUAGE']])) {
+ $MIRRORS[$MYSITE][6] = $_SERVER['MIRROR_LANGUAGE'];
+ }
}
?>