SF.net SVN: postfixadmin:[1215] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-10-17 23:37:58
|
Revision: 1215 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1215&view=rev Author: christian_boltz Date: 2011-10-17 23:37:52 +0000 (Mon, 17 Oct 2011) Log Message: ----------- common.php, scripts/postfixadmin-cli.php: - init Lang and Config classes in common.php instead of postfixadmin-cli.php - they need to be available in the web interface also Modified Paths: -------------- trunk/common.php trunk/scripts/postfixadmin-cli.php Modified: trunk/common.php =================================================================== --- trunk/common.php 2011-10-17 23:19:57 UTC (rev 1214) +++ trunk/common.php 2011-10-17 23:37:52 UTC (rev 1215) @@ -81,6 +81,12 @@ } spl_autoload_register('postfixadmin_autoload'); +Lang::getInstance(); +Lang::write($PALANG); + +Config::getInstance(); +Config::write($CONF); + if (!defined('POSTFIXADMIN_CLI')) { if(!is_file("$incpath/smarty.inc.php")) { die("smarty.inc.php is missing! Something is wrong..."); Modified: trunk/scripts/postfixadmin-cli.php =================================================================== --- trunk/scripts/postfixadmin-cli.php 2011-10-17 23:19:57 UTC (rev 1214) +++ trunk/scripts/postfixadmin-cli.php 2011-10-17 23:37:52 UTC (rev 1215) @@ -225,12 +225,6 @@ } } - Config::getInstance(); - Config::write($CONF); - - Lang::getInstance(); - Lang::write($PALANG); - return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |