1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-12-16 10:02:22 +03:00

Merge branch 'feature/pagination_settings' of github.com:Xenoamor/BookStack into Xenoamor-feature/pagination_settings

This commit is contained in:
Dan Brown
2025-12-06 21:47:13 +00:00
5 changed files with 42 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ class BookshelfController extends Controller
$shelves = $this->queries->visibleForListWithCover()
->orderBy($listOptions->getSort(), $listOptions->getOrder())
->paginate(18);
->paginate(intval(setting('sorting-shelves-per-page', '18')));
$recents = $this->isSignedIn() ? $this->queries->recentlyViewedForCurrentUser()->get() : false;
$popular = $this->queries->popularForList()->get();
$new = $this->queries->visibleForList()