Исправлена пагинация на главной

master
Anthony Axenov 2022-12-04 23:18:24 +08:00
parent 3204b26d8c
commit f18fb9dd7a
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class HomeController extends Controller
'updated_at' => $this->ini->updatedAt(),
'count' => $this->ini->playlists->count(),
'pages' => [
'count' => (int)($this->ini->playlists->count() / $per_page),
'count' => ceil($this->ini->playlists->count() / $per_page),
'current' => $page,
],
'playlists' => $list->toArray(),