mirror of
https://github.com/openvk/openvk
synced 2025-04-23 00:23:01 +03:00
Update WallPresenter.php
This commit is contained in:
parent
02b6022cc3
commit
4a394cc452
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ final class WallPresenter extends OpenVKPresenter
|
|||
->where("deleted", 0)
|
||||
->order("created DESC");
|
||||
$this->template->paginatorConf = (object) [
|
||||
"count" => sizeof((array)$posts),
|
||||
"count" => $posts->count(),
|
||||
"page" => (int) ($_GET["p"] ?? 1),
|
||||
"amount" => sizeof($posts->page((int) ($_GET["p"] ?? 1), $perPage)),
|
||||
"perPage" => $perPage,
|
||||
|
@ -182,7 +182,7 @@ final class WallPresenter extends OpenVKPresenter
|
|||
$this->template->paginatorConf = (object) [
|
||||
"count" => $count,
|
||||
"page" => (int) ($_GET["p"] ?? 1),
|
||||
"amount" => sizeof((array)$posts),
|
||||
"amount" => $posts->count(),
|
||||
"perPage" => $pPage,
|
||||
];
|
||||
foreach($posts as $post)
|
||||
|
|
Loading…
Reference in a new issue