1
1
Fork 0

don't load configs if no database.

This commit is contained in:
Friendika 2011-06-27 17:18:13 -07:00
parent 1947b74e5b
commit 29c57f7ad2

View file

@ -44,9 +44,12 @@ $db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
unset($db_host, $db_user, $db_pass, $db_data);
if(! $install) {
/**
* Load configs from db. Overwrite configs from .htconfig.php
*/
$r = q("SELECT * FROM `config` WHERE `cat` IN ('system', 'config')");
foreach ($r as $c) {
if ($c['cat']=='config') {
@ -57,6 +60,11 @@ foreach ($r as $c) {
}
unset($r);
require_once("session.php");
load_hooks();
call_hooks('init_1');
}
/**
*
@ -70,14 +78,6 @@ unset($r);
*
*/
if(! $install) {
require_once("session.php");
load_hooks();
call_hooks('init_1');
}
require_once("datetime.php");
$a->timezone = (($default_timezone) ? $default_timezone : 'UTC');