mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Simplified activity facade interface
Also cleaned up any other bits along the way.
This commit is contained in:
@ -358,7 +358,7 @@ class PageController extends Controller
|
||||
$this->checkOwnablePermission('page-delete', $page);
|
||||
$this->pageRepo->destroyPage($page);
|
||||
|
||||
Activity::addMessage('page_delete', $book->id, $page->name);
|
||||
Activity::addMessage('page_delete', $page->name, $book->id);
|
||||
$this->showSuccessNotification( trans('entities.pages_delete_success'));
|
||||
return redirect($book->getUrl());
|
||||
}
|
||||
|
Reference in New Issue
Block a user