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:
@ -212,7 +212,7 @@ class BookshelfController extends Controller
|
||||
{
|
||||
$shelf = $this->entityRepo->getEntityBySlug('bookshelf', $slug); /** @var $shelf Bookshelf */
|
||||
$this->checkOwnablePermission('bookshelf-delete', $shelf);
|
||||
Activity::addMessage('bookshelf_delete', 0, $shelf->name);
|
||||
Activity::addMessage('bookshelf_delete', $shelf->name);
|
||||
|
||||
if ($shelf->cover) {
|
||||
$this->imageRepo->destroyImage($shelf->cover);
|
||||
|
Reference in New Issue
Block a user