Returnto the previous page when deleting a notice.

This commit is contained in:
Mikael Nordfeldth 2016-02-08 15:30:28 +01:00
parent d98784e059
commit a30d34be7f
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}
}