mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix pagination in albums
This commit is contained in:
parent
6cb36548fc
commit
d9b7b47a37
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ final class PhotosPresenter extends OpenVKPresenter
|
|||
$this->notFound();
|
||||
|
||||
$this->template->album = $album;
|
||||
$this->template->photos = iterator_to_array($album->getPhotos($this->queryParam("page") ?? 1));
|
||||
$this->template->photos = iterator_to_array( $album->getPhotos( (int) ($this->queryParam("p") ?? 1) ) );
|
||||
$this->template->paginatorConf = (object) [
|
||||
"count" => $album->getPhotosCount(),
|
||||
"page" => $this->queryParam("p") ?? 1,
|
||||
|
|
Loading…
Reference in a new issue