relocate index and db

This commit is contained in:
redmatrix
2016-05-24 16:36:55 -07:00
parent 29ba891809
commit 84ba6393ad
7 changed files with 253 additions and 221 deletions

View File

@@ -571,7 +571,7 @@ function logger($msg, $level = LOGGER_NORMAL, $priority = LOG_INFO) {
global $a;
global $db;
if((App::$module == 'install') || (! ($db && $db->connected)))
if((App::$module == 'install') || (! (DBA::$dba && DBA::$dba->connected)))
return;
$debugging = get_config('system', 'debugging');
@@ -652,7 +652,7 @@ function dlogger($msg, $level = 0) {
global $a;
global $db;
if((App::$module == 'install') || (! ($db && $db->connected)))
if((App::$module == 'install') || (! (DBA::$dba && DBA::$dba->connected)))
return;
$debugging = get_config('system','debugging');