Update Models\PM\Model
Update pagination.
This commit is contained in:
parent
80b6ae4efb
commit
e626ab7ad9
1 changed files with 10 additions and 16 deletions
|
@ -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
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue