You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
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 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1215 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -81,6 +81,12 @@ function postfixadmin_autoload($class) {
|
|||||||
}
|
}
|
||||||
spl_autoload_register('postfixadmin_autoload');
|
spl_autoload_register('postfixadmin_autoload');
|
||||||
|
|
||||||
|
Lang::getInstance();
|
||||||
|
Lang::write($PALANG);
|
||||||
|
|
||||||
|
Config::getInstance();
|
||||||
|
Config::write($CONF);
|
||||||
|
|
||||||
if (!defined('POSTFIXADMIN_CLI')) {
|
if (!defined('POSTFIXADMIN_CLI')) {
|
||||||
if(!is_file("$incpath/smarty.inc.php")) {
|
if(!is_file("$incpath/smarty.inc.php")) {
|
||||||
die("smarty.inc.php is missing! Something is wrong...");
|
die("smarty.inc.php is missing! Something is wrong...");
|
||||||
|
@ -225,12 +225,6 @@ class PostfixAdmin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Config::getInstance();
|
|
||||||
Config::write($CONF);
|
|
||||||
|
|
||||||
Lang::getInstance();
|
|
||||||
Lang::write($PALANG);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user