aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-04-15 16:49:54 +0200
committerMichael Vogel <icarus@dabo.de>2012-04-15 16:49:54 +0200
commita147d6113c081694d4209002fa5e57106d4c6f41 (patch)
treede6f940efa0439ab3d54ff7d280e221b7b59d348 /index.php
parente825a73f1de308b6ae0ae3cc5549263704a14594 (diff)
parentf994f9abc6092106659a29f5ee1be0706825c203 (diff)
downloadvolse-hubzilla-a147d6113c081694d4209002fa5e57106d4c6f41.tar.gz
volse-hubzilla-a147d6113c081694d4209002fa5e57106d4c6f41.tar.bz2
volse-hubzilla-a147d6113c081694d4209002fa5e57106d4c6f41.zip
Merge commit 'upstream/master'
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index 5dd93523e..442173eeb 100644
--- a/index.php
+++ b/index.php
@@ -40,8 +40,8 @@ load_translation_table($lang);
require_once("dba.php");
if(! $install) {
-$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
- unset($db_host, $db_user, $db_pass, $db_data);
+ $db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
+ unset($db_host, $db_user, $db_pass, $db_data);
/**
* Load configs from db. Overwrite configs from .htconfig.php
@@ -95,6 +95,10 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
if(x($_GET,'zrl')) {
$_SESSION['my_url'] = $_GET['zrl'];
$a->query_string = preg_replace('/[\?&]zrl=(.*?)([\?&]|$)/is','',$a->query_string);
+ if(! $install) {
+ $arr = array('zrl' => $_SESSION['my_url'], 'url' => $a->cmd);
+ call_hooks('zrl_init',$arr);
+ }
}
/**