From: Mikael Nordfeldth Date: Mon, 8 Feb 2016 14:30:28 +0000 (+0100) Subject: Returnto the previous page when deleting a notice. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a30d34be7f77cd5b7c3cc773d0cd0398c898013c;p=quix0rs-gnu-social.git Returnto the previous page when deleting a notice. --- 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); } }