mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Update WallPresenter.php
This commit is contained in:
parent
158f1938bb
commit
b70c6c96bb
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
->where("deleted", 0)
|
->where("deleted", 0)
|
||||||
->order("created DESC");
|
->order("created DESC");
|
||||||
$this->template->paginatorConf = (object) [
|
$this->template->paginatorConf = (object) [
|
||||||
"count" => $posts->getRowCount(),
|
"count" => sizeof($posts),
|
||||||
"page" => (int) ($_GET["p"] ?? 1),
|
"page" => (int) ($_GET["p"] ?? 1),
|
||||||
"amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->getRowCount(),
|
"amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->getRowCount(),
|
||||||
"perPage" => $perPage,
|
"perPage" => $perPage,
|
||||||
|
|
Loading…
Reference in a new issue