diff options
author | Friendika <info@friendika.com> | 2011-06-16 15:29:04 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-16 15:29:04 -0700 |
commit | bb73c0b9f307accaa284820aaa11852c8481682f (patch) | |
tree | cc192702c535f5a477e72cd873ecf4f80c4568dc /index.php | |
parent | 0f3292fefb96016ad98b8f25746824d9e3cff31e (diff) | |
parent | 6709beb2ac776bb06bd0d9d7749faac9a065863c (diff) | |
download | volse-hubzilla-bb73c0b9f307accaa284820aaa11852c8481682f.tar.gz volse-hubzilla-bb73c0b9f307accaa284820aaa11852c8481682f.tar.bz2 volse-hubzilla-bb73c0b9f307accaa284820aaa11852c8481682f.zip |
Merge branch 'pull'
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -29,7 +29,6 @@ $install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false @include(".htconfig.php"); - $lang = get_language(); load_translation_table($lang); @@ -46,6 +45,20 @@ $db = new dba($db_host, $db_user, $db_pass, $db_data, $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); + + +/** * * Important stuff we always need to do. * Initialise authentication and date and time. |