X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=index.php;h=3e72baddc5a9d7ec278d9aa9b410da6e4e161564;hb=2e1f74397c3fccc8cedaad0c16c0ec658e2ed783;hp=9bca1527bfc99f1926d89fdc1280475e0ad2b465;hpb=b61a7158da4c8a0b41651a082f0ce2f9ad431f14;p=friendica.git diff --git a/index.php b/index.php index 9bca1527bf..3e72baddc5 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,5 @@ config[$c['k']] = $c['v']; - } else { - $a->config[$c['cat']][$c['k']] = $c['v']; - } +if(! $install) { + + /** + * Load configs from db. Overwrite configs from .htconfig.php + */ + + load_config('config'); + load_config('system'); + + require_once("session.php"); + load_hooks(); + call_hooks('init_1'); } -unset($r); /** @@ -70,14 +69,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');