common.php:

- call Config::write() earlier, because check_language() uses it
- later add $PALANG with Config::write(__LANG)

Thanks to <controlcde> for reporting the results of this bug on IRC
(even if I had to hunt it down to find the reason ;-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1548 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 11 years ago
parent b137e774f6
commit c6ca4f9bae

@ -64,6 +64,8 @@ if(isset($CONF['configured'])) {
}
}
Config::write($CONF);
require_once("$incpath/languages/language.php");
require_once("$incpath/functions.inc.php");
@ -81,9 +83,7 @@ if($CONF['language_hook'] != '' && function_exists($CONF['language_hook'])) {
$PALANG = $hook_func ($PALANG, $language);
}
$CONF['__LANG'] = $PALANG;
Config::write($CONF);
Config::write('__LANG', $PALANG);
if (!defined('POSTFIXADMIN_CLI')) {

Loading…
Cancel
Save