mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 15:57:29 +00:00
Merge branch 'feature/#1598' of git://github.com/cw1998/BookStack into cw1998-feature/#1598
This commit is contained in:
commit
898cedf536
5 changed files with 41 additions and 3 deletions
app/Http/Controllers
|
@ -114,6 +114,7 @@ class BookController extends Controller
|
|||
{
|
||||
$book = $this->bookRepo->getBySlug($slug);
|
||||
$bookChildren = (new BookContents($book))->getTree(true);
|
||||
$bookParentShelves = $book->shelves()->visible();
|
||||
|
||||
Views::add($book);
|
||||
if ($request->has('shelf')) {
|
||||
|
@ -125,6 +126,7 @@ class BookController extends Controller
|
|||
'book' => $book,
|
||||
'current' => $book,
|
||||
'bookChildren' => $bookChildren,
|
||||
'bookParentShelves' => $bookParentShelves,
|
||||
'activity' => Activity::entityActivity($book, 20, 1)
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue