Fix constant MAIN_LANG_DEFAULT not used

This commit is contained in:
Laurent Destailleur 2017-12-19 00:24:38 +01:00
parent d4afb8300d
commit 91932838ef
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,6 @@ if (! empty($_SESSION["disablemodules"]))
}
}
/*
* Phase authentication / login
*/

View File

@ -235,7 +235,8 @@ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC'))
if (! defined('NOREQUIRETRAN'))
{
$langcode=(GETPOST('lang','aZ09')?GETPOST('lang','aZ09',1):(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
$langs->setDefaultLang($langcode);
if (defined('MAIN_LANG_DEFAULT')) $langcode=constant('MAIN_LANG_DEFAULT');
$langs->setDefaultLang($langcode);
}