diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-06-01 16:19:48 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-06-01 16:19:48 +0000 |
commit | ceb33f024dad4db03e55bc1f7573ec77f7fc04ec (patch) | |
tree | 5b6584cc9fa29e369507f760086d1f557602752b | |
parent | c35e3593c7a5ffcae2d40be66e56e750d947d004 (diff) | |
download | www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar.gz www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar.bz2 www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.tar.xz www-ceb33f024dad4db03e55bc1f7573ec77f7fc04ec.zip |
check if locale is not already set
-rw-r--r-- | langs.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |