aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-06-01 16:19:48 +0000
committerRomain d'Alverny <rda@mageia.org>2011-06-01 16:19:48 +0000
commitceb33f024dad4db03e55bc1f7573ec77f7fc04ec (patch)
tree5b6584cc9fa29e369507f760086d1f557602752b /langs.php
parentc35e3593c7a5ffcae2d40be66e56e750d947d004 (diff)
downloadwww-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar
www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar.gz
www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar.bz2
www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar.xz
www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.zip
check if locale is not already set
Diffstat (limited to 'langs.php')
-rw-r--r--langs.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/langs.php b/langs.php
index e901a988c..d6a35b93a 100644
--- a/langs.php
+++ b/langs.php
@@ -29,7 +29,9 @@ require_once 'langs.inc.php';
$sru = trim($_SERVER['REQUEST_URI']);
$sel = explode('/', $sru);
array_shift($sel);
-$locale = array_shift($sel);
+if (!isset($locale))
+ $locale = array_shift($sel);
+
$page = count($sel) > 0 ? implode('/', $sel) : null;
$list_langs = array();