X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=html%2Findex.php;h=77c375bc909e773937b1a4bef44171ac5cfd5cf4;hb=4b0ae24d1609910eaaa03f2b5cd2fc0057c5f020;hp=b07da22c1a9e1d0b6eb6616e02fc6eab35f5e3ee;hpb=6f80cf0a1d4ae8ba809c81b4696a55b5eafa8af2;p=gosa.git diff --git a/html/index.php b/html/index.php index b07da22c1..77c375bc9 100644 --- a/html/index.php +++ b/html/index.php @@ -27,7 +27,7 @@ header("Content-type: text/html; charset=UTF-8"); function displayLogin() { global $smarty,$message,$config,$ssl,$error_collector; - error_reporting(E_ALL); + error_reporting(E_ALL | E_STRICT); /* Fill template with required values */ $username = ""; if(isset($_POST["username"])){ @@ -149,11 +149,7 @@ if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){ clean_smarty_compile_dir($smarty->compile_dir); /* Language setup */ -if ($config->data['MAIN']['LANG'] == ""){ - $lang= get_browser_language(); -} else { - $lang= $config->data['MAIN']['LANG']; -} +$lang= get_browser_language(); putenv("LANGUAGE="); putenv("LANG=$lang"); setlocale(LC_ALL, $lang);