]> git.mxchange.org Git - friendica.git/blobdiff - mod/filerm.php
Replace goaway location SESSION var return_url with page as string value
[friendica.git] / mod / filerm.php
index 7662289ad255e1f0d0e50d8276b296eeca8e33e2..55b218e1519df0fd337321d21405ff9a3e21b28b 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-function filerm_content(App &$a) {
+use Friendica\App;
+use Friendica\Core\System;
+
+function filerm_content(App $a) {
 
        if (! local_user()) {
                killme();
@@ -22,14 +25,7 @@ function filerm_content(App &$a) {
                file_tag_unsave_file(local_user(),$item_id,$term, $category);
        }
 
-<<<<<<< upstream/develop
-       if (x($_SESSION,'return_url')) {
-               goaway(App::get_baseurl() . '/' . $_SESSION['return_url']);
-       }
-=======
-       if(x($_SESSION,'return_url'))
-               goaway(App::get_baseurl() . '/' . $_SESSION['return_url']);
->>>>>>> HEAD~33
+       goaway('/network');
 
        killme();
 }