Update Models\PM\Model

Update pagination.
This commit is contained in:
Visman 2021-03-29 18:12:10 +07:00
parent 80b6ae4efb
commit e626ab7ad9

View file

@ -412,22 +412,16 @@ class Model extends ParentModel
*/
protected function getpagination(): array
{
if (
$this->page < 1
&& 1 === $this->numPages
) {
return [];
} else {
return $this->c->Func->paginate(
$this->numPages,
$this->page,
'PMAction',
[
'second' => $this->second,
'action' => $this->area,
]
);
}
return $this->c->Func->paginate(
$this->numPages,
$this->page,
'PMAction',
[
'second' => $this->second,
'action' => $this->area,
'page' => 'more1', // нестандарная переменная для page
]
);
}
/**