You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
remove (possibly) unnecessary Config::read(all) calls ... see #144
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if(file_exists(dirname(__FILE__) . '/../common.php')) {
|
||||||
|
require_once(dirname(__FILE__) . '/../common.php');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command-line code generation utility to automate administrator tasks.
|
* Command-line code generation utility to automate administrator tasks.
|
||||||
*
|
*
|
||||||
@@ -191,7 +196,6 @@ class PostfixAdmin {
|
|||||||
* Dispatches a CLI request
|
* Dispatches a CLI request
|
||||||
*/
|
*/
|
||||||
public function dispatch() {
|
public function dispatch() {
|
||||||
$CONF = Config::read('all');
|
|
||||||
|
|
||||||
check_db_version(); # ensure the database layout is up to date
|
check_db_version(); # ensure the database layout is up to date
|
||||||
|
|
||||||
@@ -473,9 +477,6 @@ class PostfixAdmin {
|
|||||||
define("POSTFIXADMIN_CLI", 1);
|
define("POSTFIXADMIN_CLI", 1);
|
||||||
|
|
||||||
$dispatcher = new PostfixAdmin($argv);
|
$dispatcher = new PostfixAdmin($argv);
|
||||||
|
|
||||||
$CONF = Config::read('all');
|
|
||||||
|
|
||||||
$dispatcher->dispatch();
|
$dispatcher->dispatch();
|
||||||
|
|
||||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||||
|
Reference in New Issue
Block a user