diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-25 15:14:44 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-25 15:14:44 +0000 |
commit | ff76101d277661e90d1ab4fb7dbe1c4f7b958505 (patch) | |
tree | 075acd0357042e66fb662865522c67938d5bc9ff /_nav/html | |
parent | 18b7da1d4d7b7b6fec25646244ed427007378db0 (diff) | |
download | www-ff76101d277661e90d1ab4fb7dbe1c4f7b958505.tar www-ff76101d277661e90d1ab4fb7dbe1c4f7b958505.tar.gz www-ff76101d277661e90d1ab4fb7dbe1c4f7b958505.tar.bz2 www-ff76101d277661e90d1ab4fb7dbe1c4f7b958505.tar.xz www-ff76101d277661e90d1ab4fb7dbe1c4f7b958505.zip |
merge changes from nav.mageia.org
Diffstat (limited to '_nav/html')
-rw-r--r-- | _nav/html/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/_nav/html/index.php b/_nav/html/index.php index 31ba1d514..7297f84ec 100644 --- a/_nav/html/index.php +++ b/_nav/html/index.php @@ -9,6 +9,11 @@ $url = isset($_GET['u']) ? trim($_GET['u']) : null; /** html[lang] of the doc. */ $lang = isset($_GET['l']) ? trim($_GET['l']) : null; +if ($lang == 'undefined' || + $lang == '') { + + $lang = 'en'; +} /** body[class] of the doc. */ $body = isset($_GET['b']) ? trim($_GET['b']) : null; @@ -25,4 +30,4 @@ header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET'); header('Content-Type: text/html;charset=utf-8'); header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day')))); -echo _mgnav_html($wrap, $lang);
\ No newline at end of file +echo _mgnav_html($wrap, $lang); |