Update WallPresenter.php

This commit is contained in:
Dmitry Tretyakov 2023-10-25 17:19:49 +07:00
parent 672a8400c3
commit 5e3b06a05b

View file

@ -74,7 +74,7 @@ final class WallPresenter extends OpenVKPresenter
$this->template->paginatorConf = (object) [ $this->template->paginatorConf = (object) [
"count" => $this->template->count, "count" => $this->template->count,
"page" => (int) ($_GET["p"] ?? 1), "page" => (int) ($_GET["p"] ?? 1),
"amount" => $this->template->posts->count(), "amount" => sizeof($this->template->posts),
"perPage" => OPENVK_DEFAULT_PER_PAGE, "perPage" => OPENVK_DEFAULT_PER_PAGE,
]; ];