mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
Fix
This commit is contained in:
parent
864e9f73e6
commit
b42d958a83
3 changed files with 6 additions and 6 deletions
|
@ -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" => $this->template->posts->getRowCount(),
|
||||||
"perPage" => OPENVK_DEFAULT_PER_PAGE,
|
"perPage" => OPENVK_DEFAULT_PER_PAGE,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -152,9 +152,9 @@ 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->count(),
|
"count" => $posts->getRowCount(),
|
||||||
"page" => (int) ($_GET["p"] ?? 1),
|
"page" => (int) ($_GET["p"] ?? 1),
|
||||||
"amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->count(),
|
"amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->getRowCount(),
|
||||||
"perPage" => $perPage,
|
"perPage" => $perPage,
|
||||||
];
|
];
|
||||||
$this->template->posts = [];
|
$this->template->posts = [];
|
||||||
|
@ -182,7 +182,7 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
$this->template->paginatorConf = (object) [
|
$this->template->paginatorConf = (object) [
|
||||||
"count" => $count,
|
"count" => $count,
|
||||||
"page" => (int) ($_GET["p"] ?? 1),
|
"page" => (int) ($_GET["p"] ?? 1),
|
||||||
"amount" => $posts->count(),
|
"amount" => $posts->getRowCount(),
|
||||||
"perPage" => $pPage,
|
"perPage" => $pPage,
|
||||||
];
|
];
|
||||||
foreach($posts as $post)
|
foreach($posts as $post)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
{var $amount = $logs->count()}
|
{var $amount = $logs->getRowCount()}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
del, ins { text-decoration: none; color: #000; }
|
del, ins { text-decoration: none; color: #000; }
|
||||||
|
|
|
@ -142,7 +142,7 @@
|
||||||
{include "../components/paginator.xml", conf => (object) [
|
{include "../components/paginator.xml", conf => (object) [
|
||||||
"page" => $page,
|
"page" => $page,
|
||||||
"count" => $count,
|
"count" => $count,
|
||||||
"amount" => $data->count(),
|
"amount" => $data->getRowCount(),
|
||||||
"perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
|
"perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
|
||||||
"atBottom" => false,
|
"atBottom" => false,
|
||||||
]}
|
]}
|
||||||
|
|
Loading…
Reference in a new issue