[various] Escape global function get_app calls
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 28 Dec 2018 02:03:17 +0000 (21:03 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 28 Dec 2018 02:03:17 +0000 (21:03 -0500)
ifttt/ifttt.php
impressum/impressum.php
widgets/widgets.php

index 50fa119..302bc9c 100644 (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;
index c5a1c98..d7cbc6d 100644 (file)
@@ -33,7 +33,7 @@ function impressum_uninstall() {
 function impressum_module() {
 }
 function impressum_content() {
-    $a = get_app();
+    $a = \get_app();
     $a->internalRedirect('friendica/');
 }
 
index 927d674..64f6b62 100644 (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);
 }