From: Hypolite Petovan Date: Fri, 28 Dec 2018 02:03:17 +0000 (-0500) Subject: [various] Escape global function get_app calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=62c43ea2f8ebb701cc6342452a264eec13971372;p=friendica-addons.git [various] Escape global function get_app calls --- diff --git a/ifttt/ifttt.php b/ifttt/ifttt.php index 50fa119c..302bc9c1 100644 --- a/ifttt/ifttt.php +++ b/ifttt/ifttt.php @@ -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; diff --git a/impressum/impressum.php b/impressum/impressum.php index c5a1c98d..d7cbc6d2 100644 --- a/impressum/impressum.php +++ b/impressum/impressum.php @@ -33,7 +33,7 @@ function impressum_uninstall() { function impressum_module() { } function impressum_content() { - $a = get_app(); + $a = \get_app(); $a->internalRedirect('friendica/'); } diff --git a/widgets/widgets.php b/widgets/widgets.php index 927d6746..64f6b62f 100644 --- a/widgets/widgets.php +++ b/widgets/widgets.php @@ -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); }