aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/index.php b/index.php
index a58e4730f..2e24c5b01 100644
--- a/index.php
+++ b/index.php
@@ -50,15 +50,8 @@ 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') {
- $a->config[$c['k']] = $c['v'];
- } else {
- $a->config[$c['cat']][$c['k']] = $c['v'];
- }
- }
- unset($r);
+ load_config('config');
+ load_config('system');
require_once("session.php");
load_hooks();