diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-04-14 15:12:39 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-04-14 15:12:39 -0400 |
commit | 1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e (patch) | |
tree | 32486e253628ab64fa466f34dfc0703d9ce8644c /index.php | |
parent | 16f729912a00cc92d0473f3d326080531a2fb393 (diff) | |
parent | 6591b292a1e22e3eaec41af0a61a6911e9847098 (diff) | |
download | volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.tar.gz volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.tar.bz2 volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.zip |
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master:
bogus empty list element in dfrn_request page when emailnet not enabled
zrl on random profile
zrl hook
bug #372 - category feeds
pass zrl's to/through global directory
* master:
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); + } } /** |