From a30d34be7f77cd5b7c3cc773d0cd0398c898013c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 8 Feb 2016 15:30:28 +0100 Subject: [PATCH] Returnto the previous page when deleting a notice. --- actions/deletenotice.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/actions/deletenotice.php b/actions/deletenotice.php index f0aa767916..2dd0848aa5 100644 --- a/actions/deletenotice.php +++ b/actions/deletenotice.php @@ -68,10 +68,8 @@ class DeletenoticeAction extends FormAction $this->notice->deleteAs($this->scoped); Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice)); } - } else { - common_redirect(common_get_returnto(), 303); } - common_redirect(common_local_url('top'), 303); + common_redirect(common_get_returnto(), 303); } } -- 2.39.5