forked from friendica/friendica-addons
Merge pull request #786 from MrPetovan/bug/6334-get-app-namespace
[various] Escape global function get_app calls
This commit is contained in:
commit
2d6a56e5e8
|
@ -165,7 +165,7 @@ function ifttt_post(App $a)
|
||||||
|
|
||||||
function ifttt_message($uid, $item)
|
function ifttt_message($uid, $item)
|
||||||
{
|
{
|
||||||
$a = get_app();
|
$a = \get_app();
|
||||||
|
|
||||||
$_SESSION['authenticated'] = true;
|
$_SESSION['authenticated'] = true;
|
||||||
$_SESSION['uid'] = $uid;
|
$_SESSION['uid'] = $uid;
|
||||||
|
|
|
@ -33,7 +33,7 @@ function impressum_uninstall() {
|
||||||
function impressum_module() {
|
function impressum_module() {
|
||||||
}
|
}
|
||||||
function impressum_content() {
|
function impressum_content() {
|
||||||
$a = get_app();
|
$a = \get_app();
|
||||||
$a->internalRedirect('friendica/');
|
$a->internalRedirect('friendica/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ function widgets_module() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _abs_url($s){
|
function _abs_url($s){
|
||||||
$a = get_app();
|
$a = \get_app();
|
||||||
return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1".$a->getBaseURL()."/\$2", $s);
|
return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1".$a->getBaseURL()."/\$2", $s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue