diff --git a/html/index.php b/html/index.php
index b07da22c1a9e1d0b6eb6616e02fc6eab35f5e3ee..77c375bc909e773937b1a4bef44171ac5cfd5cf4 100644 (file)
--- a/html/index.php
+++ b/html/index.php
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"])){
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);