]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookController.php
Adds overflow:auto to popup content to allow it to scroll in lower res.
[bookstack] / app / Http / Controllers / BookController.php
index 2d961355be84f1ea740fb1e16db09c6358a21436..aa8f89ea493cd88f6e8e86058ab69917ad381d42 100644 (file)
@@ -40,13 +40,13 @@ class BookController extends Controller
         $recents = $this->signedIn ? $this->entityRepo->getRecentlyViewed('book', 4, 0) : false;
         $popular = $this->entityRepo->getPopular('book', 4, 0);
         $new = $this->entityRepo->getRecentlyCreated('book', 4, 0);
-        $booksViewType = $this->currentUser->books_view_type;
-        $this->setPageTitle('Books');
+        $booksViewType = setting()->getUser($this->currentUser, 'books_view_type', 'list');
+        $this->setPageTitle(trans('entities.books'));
         return view('books/index', [
             'books' => $books,
             'recents' => $recents,
             'popular' => $popular,
-            'new' => $new, 
+            'new' => $new,
             'booksViewType' => $booksViewType
         ]);
     }