GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit a30d34be authored by mmn's avatar mmn

Returnto the previous page when deleting a notice.

parent d98784e0
...@@ -68,10 +68,8 @@ class DeletenoticeAction extends FormAction ...@@ -68,10 +68,8 @@ class DeletenoticeAction extends FormAction
$this->notice->deleteAs($this->scoped); $this->notice->deleteAs($this->scoped);
Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice)); 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);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment