aboutsummaryrefslogtreecommitdiffstats
path: root/include/cli_startup.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-24 16:36:55 -0700
committerredmatrix <git@macgirvin.com>2016-05-24 16:36:55 -0700
commit84ba6393ad32406a9875044aef2d031c7d0d7a46 (patch)
treee1d82b53030df491cea67407526aa5f1a1d0a521 /include/cli_startup.php
parent29ba8918093166ac32ef9a727a9b71ba8e01a402 (diff)
downloadvolse-hubzilla-84ba6393ad32406a9875044aef2d031c7d0d7a46.tar.gz
volse-hubzilla-84ba6393ad32406a9875044aef2d031c7d0d7a46.tar.bz2
volse-hubzilla-84ba6393ad32406a9875044aef2d031c7d0d7a46.zip
relocate index and db
Diffstat (limited to 'include/cli_startup.php')
-rw-r--r--include/cli_startup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cli_startup.php b/include/cli_startup.php
index a33f7acb0..b89d5f1bb 100644
--- a/include/cli_startup.php
+++ b/include/cli_startup.php
@@ -14,7 +14,7 @@ function cli_startup() {
App::init();
- if(is_null($db)) {
+ if(! DBA::$connected) {
@include(".htconfig.php");
$a->convert();
@@ -26,7 +26,7 @@ function cli_startup() {
date_default_timezone_set(App::$timezone);
require_once('include/dba/dba_driver.php');
- $db = dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type);
+ $db = DBA::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);
};