SF.net SVN: postfixadmin:[1548] trunk/common.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2013-10-31 20:52:51
|
Revision: 1548 http://sourceforge.net/p/postfixadmin/code/1548 Author: christian_boltz Date: 2013-10-31 20:52:45 +0000 (Thu, 31 Oct 2013) Log Message: ----------- 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 ;-) Modified Paths: -------------- trunk/common.php Modified: trunk/common.php =================================================================== --- trunk/common.php 2013-10-31 20:38:14 UTC (rev 1547) +++ trunk/common.php 2013-10-31 20:52:45 UTC (rev 1548) @@ -64,6 +64,8 @@ } } +Config::write($CONF); + require_once("$incpath/languages/language.php"); require_once("$incpath/functions.inc.php"); @@ -81,11 +83,9 @@ $PALANG = $hook_func ($PALANG, $language); } -$CONF['__LANG'] = $PALANG; +Config::write('__LANG', $PALANG); -Config::write($CONF); - if (!defined('POSTFIXADMIN_CLI')) { if(!is_file("$incpath/smarty.inc.php")) { die("smarty.inc.php is missing! Something is wrong..."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |