Commit e19737e1 by artur

Hide output when only one page exist

parent b1b6a769
...@@ -140,9 +140,12 @@ class LinkPager extends Widget ...@@ -140,9 +140,12 @@ class LinkPager extends Widget
*/ */
protected function renderPageButtons() protected function renderPageButtons()
{ {
$buttons = [];
$pageCount = $this->pagination->getPageCount(); $pageCount = $this->pagination->getPageCount();
if ($pageCount < 2) {
return '';
}
$buttons = [];
$currentPage = $this->pagination->getPage(); $currentPage = $this->pagination->getPage();
// first page // first page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment