mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
zrl hook
This commit is contained in:
parent
9dd0ef2aeb
commit
f4ea764aaf
1 changed files with 6 additions and 2 deletions
|
@ -40,8 +40,8 @@ load_translation_table($lang);
|
||||||
require_once("dba.php");
|
require_once("dba.php");
|
||||||
|
|
||||||
if(! $install) {
|
if(! $install) {
|
||||||
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
|
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
|
||||||
unset($db_host, $db_user, $db_pass, $db_data);
|
unset($db_host, $db_user, $db_pass, $db_data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load configs from db. Overwrite configs from .htconfig.php
|
* Load configs from db. Overwrite configs from .htconfig.php
|
||||||
|
@ -95,6 +95,10 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
|
||||||
if(x($_GET,'zrl')) {
|
if(x($_GET,'zrl')) {
|
||||||
$_SESSION['my_url'] = $_GET['zrl'];
|
$_SESSION['my_url'] = $_GET['zrl'];
|
||||||
$a->query_string = preg_replace('/[\?&]zrl=(.*?)([\?&]|$)/is','',$a->query_string);
|
$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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue