From 62c43ea2f8ebb701cc6342452a264eec13971372 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 27 Dec 2018 21:03:17 -0500 Subject: [PATCH] [various] Escape global function get_app calls --- ifttt/ifttt.php | 2 +- impressum/impressum.php | 2 +- widgets/widgets.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); }