]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookController.php
Added 'zh_CN' to app.locales
[bookstack] / app / Http / Controllers / BookController.php
index 7a98bd49ec1b67119c7aa151c0cb874964505a94..decdfda49afe13182a7f6053917354af7225eb61 100644 (file)
@@ -40,7 +40,7 @@ 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 = setting()->getUser($this->currentUser, 'books_view_type', 'list');
+        $booksViewType = setting()->getUser($this->currentUser, 'books_view_type', config('app.views.books', 'list'));
         $this->setPageTitle(trans('entities.books'));
         return view('books/index', [
             'books' => $books,