[various] Escape global function get_app calls

This commit is contained in:
Hypolite Petovan 2018-12-27 21:03:17 -05:00
parent fdda495f18
commit 62c43ea2f8
3 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ function ifttt_post(App $a)
function ifttt_message($uid, $item)
{
$a = get_app();
$a = \get_app();
$_SESSION['authenticated'] = true;
$_SESSION['uid'] = $uid;

View file

@ -33,7 +33,7 @@ function impressum_uninstall() {
function impressum_module() {
}
function impressum_content() {
$a = get_app();
$a = \get_app();
$a->internalRedirect('friendica/');
}

View file

@ -77,7 +77,7 @@ function widgets_module() {
}
function _abs_url($s){
$a = get_app();
$a = \get_app();
return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1".$a->getBaseURL()."/\$2", $s);
}