diff --git a/Web/Presenters/PhotosPresenter.php b/Web/Presenters/PhotosPresenter.php
index 24531222..56247bde 100644
--- a/Web/Presenters/PhotosPresenter.php
+++ b/Web/Presenters/PhotosPresenter.php
@@ -138,12 +138,13 @@ final class PhotosPresenter extends OpenVKPresenter
}
$this->template->album = $album;
- $this->template->photos = iterator_to_array( $album->getPhotos( (int) ($this->queryParam("p") ?? 1) ) );
+ $this->template->photos = iterator_to_array( $album->getPhotos( (int) ($this->queryParam("p") ?? 1), 20) );
$this->template->paginatorConf = (object) [
"count" => $album->getPhotosCount(),
"page" => $this->queryParam("p") ?? 1,
"amount" => sizeof($this->template->photos),
- "perPage" => OPENVK_DEFAULT_PER_PAGE,
+ "perPage" => 20,
+ "atBottom" => true
];
}
diff --git a/Web/Presenters/templates/Photos/Album.xml b/Web/Presenters/templates/Photos/Album.xml
index d4fe819a..9927c297 100644
--- a/Web/Presenters/templates/Photos/Album.xml
+++ b/Web/Presenters/templates/Photos/Album.xml
@@ -27,23 +27,24 @@
|
{_"edit_album"}
{/if}
-
+
{if $album->getPhotosCount() > 0}
- {foreach $photos as $photo}
- {php if($photo->isDeleted()) continue; }
-