]> git.mxchange.org Git - friendica.git/blobdiff - mod/repair_ostatus.php
Escape global namespaced get_app() calls
[friendica.git] / mod / repair_ostatus.php
index 3acaa687a712942a959edbfaee62e5141a79cb91..5a6afd9fb4d4853af4391b073789157f553a28fe 100644 (file)
@@ -14,7 +14,7 @@ function repair_ostatus_content(App $a) {
 
        if (! local_user()) {
                notice(L10n::t('Permission denied.') . EOL);
-               goaway($_SESSION['return_url']);
+               $a->internalRedirect('ostatus_repair');
                // NOTREACHED
        }
 
@@ -22,7 +22,7 @@ function repair_ostatus_content(App $a) {
 
        $uid = local_user();
 
-       $a = get_app();
+       $a = \get_app();
 
        $counter = intval($_REQUEST['counter']);