]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Renamed System::redirect() to $a->redirect()
[friendica.git] / include / items.php
index 27a7db767b4d16c6ee8a8a8a57abc02507524a27..0847dd65b6ce77698081ac8a27ad7f0ea926d418 100644 (file)
@@ -354,7 +354,7 @@ function drop_item($id)
 
        if (!DBA::isResult($item)) {
                notice(L10n::t('Item not found.') . EOL);
-               goaway('/network');
+               $a->redirect('network');
        }
 
        if ($item['deleted']) {
@@ -401,17 +401,17 @@ function drop_item($id)
                }
                // Now check how the user responded to the confirmation query
                if (!empty($_REQUEST['canceled'])) {
-                       goaway('/display/' . $item['guid']);
+                       $a->redirect('display/' . $item['guid']);
                }
 
                // delete the item
                Item::deleteForUser(['id' => $item['id']], local_user());
 
-               goaway('/network');
+               $a->redirect('network');
                //NOTREACHED
        } else {
                notice(L10n::t('Permission denied.') . EOL);
-               goaway('/display/' . $item['guid']);
+               $a->redirect('display/' . $item['guid']);
                //NOTREACHED
        }
 }