mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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->notFound();
|
||||||
|
|
||||||
$this->template->album = $album;
|
$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) [
|
$this->template->paginatorConf = (object) [
|
||||||
"count" => $album->getPhotosCount(),
|
"count" => $album->getPhotosCount(),
|
||||||
"page" => $this->queryParam("p") ?? 1,
|
"page" => $this->queryParam("p") ?? 1,
|
||||||
|
|
Loading…
Reference in a new issue