From c6ca4f9baef25f8b7e88ee02843e9e2716c505d9 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 31 Oct 2013 20:52:45 +0000 Subject: [PATCH] common.php: - call Config::write() earlier, because check_language() uses it - later add $PALANG with Config::write(__LANG) Thanks to 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 --- common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.php b/common.php index f38fca4a..6ec582aa 100644 --- a/common.php +++ b/common.php @@ -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')) {