diff options
author | marijus <mario@localhost.localdomain> | 2014-02-03 08:03:46 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-03 08:03:46 +0100 |
commit | 5c885e91a36bdbdd0829c2950b54bb84288e05a9 (patch) | |
tree | c17bcc246b68dd4a53b7883f81f596f82cc1e3fc /index.php | |
parent | 11efafb5d2b9a6b860772e4c4cec0cde5c1bf248 (diff) | |
parent | ee42079685dd4df721b1090bdaa0d86316e3358a (diff) | |
download | volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.tar.gz volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.tar.bz2 volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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'; |