aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-02 18:18:22 -0800
committerfriendica <info@friendica.com>2014-02-02 18:18:22 -0800
commitbaf3b052f645d7826ada25a05c742d1e5d4a0b51 (patch)
tree9f1af6ee2616c574cef1f7c219b93eb53f7955e2 /index.php
parent38bce48f288244c967d325639e033e0602fa0bcc (diff)
downloadvolse-hubzilla-baf3b052f645d7826ada25a05c742d1e5d4a0b51.tar.gz
volse-hubzilla-baf3b052f645d7826ada25a05c742d1e5d4a0b51.tar.bz2
volse-hubzilla-baf3b052f645d7826ada25a05c742d1e5d4a0b51.zip
don't load any configs from DB if installing - especially in style.pcss
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
index 0012798a6..736918661 100755
--- a/index.php
+++ b/index.php
@@ -23,7 +23,7 @@ $a = new App;
*
*/
-$install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false : true);
+$a->install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false : true);
@include(".htconfig.php");
@@ -38,8 +38,8 @@ $a->language = get_best_language();
require_once("include/dba/dba_driver.php");
-if(! $install) {
- $db = dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $install);
+if(! $a->install) {
+ $db = dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $a->install);
unset($db_host, $db_port, $db_user, $db_pass, $db_data);
/**
@@ -91,7 +91,7 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
load_translation_table($a->language);
}
-if((x($_GET,'zid')) && (! $install)) {
+if((x($_GET,'zid')) && (! $a->install)) {
$a->query_string = preg_replace('/[\?&]zid=(.*?)([\?&]|$)/is','',$a->query_string);
if(! local_user()) {
$_SESSION['my_address'] = $_GET['zid'];
@@ -116,7 +116,7 @@ if(! x($_SESSION,'sysmsg_info'))
*/
-if($install) {
+if($a->install) {
/* Allow an exception for the view module so that pcss will be interpreted during installation */
if($a->module != 'view')
$a->module = 'setup';