diff options
Diffstat (limited to '_nav/html/index.php')
-rw-r--r-- | _nav/html/index.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/_nav/html/index.php b/_nav/html/index.php index 0450a94c3..8c8ac690c 100644 --- a/_nav/html/index.php +++ b/_nav/html/index.php @@ -27,9 +27,10 @@ $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'; + $lang == '' || + $lang == 'en') { +$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); +// $lang = 'en'; } /** body[class] of the doc. */ @@ -51,4 +52,4 @@ header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day')))); echo _mgnav_html($wrap, $lang, null, $www_host, NCache::build($cache_path)); -apache_note('navMakeTime', number_format(microtime() - $t0, 6));
\ No newline at end of file +apache_note('navMakeTime', number_format(microtime() - $t0, 6)); |