0
0
mirror of https://github.com/anthonyaxenov/iptv.git synced 2024-11-21 21:14:46 +00:00

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

This commit is contained in:
Anthony Axenov 2022-12-04 23:18:24 +08:00
parent 3204b26d8c
commit f18fb9dd7a
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

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(),