aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-16 15:29:04 -0700
committerFriendika <info@friendika.com>2011-06-16 15:29:04 -0700
commitbb73c0b9f307accaa284820aaa11852c8481682f (patch)
treecc192702c535f5a477e72cd873ecf4f80c4568dc /index.php
parent0f3292fefb96016ad98b8f25746824d9e3cff31e (diff)
parent6709beb2ac776bb06bd0d9d7749faac9a065863c (diff)
downloadvolse-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.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/index.php b/index.php
index 534cb93f7..9bca1527b 100644
--- a/index.php
+++ b/index.php
@@ -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.