diff options
Diffstat (limited to 'include/cli_startup.php')
-rw-r--r-- | include/cli_startup.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cli_startup.php b/include/cli_startup.php index a226f1345..a99164d4c 100644 --- a/include/cli_startup.php +++ b/include/cli_startup.php @@ -1,7 +1,6 @@ <?php /** @file */ require_once('boot.php'); -require_once('include/dba/dba_driver.php'); // Everything we need to boot standalone 'background' processes @@ -15,7 +14,7 @@ function cli_startup() { App::init(); - if(! DBA::$dba) { + if(is_null($db)) { @include(".htconfig.php"); $a->convert(); @@ -26,7 +25,8 @@ function cli_startup() { App::$timezone = ((x($default_timezone)) ? $default_timezone : 'UTC'); date_default_timezone_set(App::$timezone); - $db = DBA::dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type); + require_once('include/dba/dba_driver.php'); + $db = dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type); unset($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type); }; |