Skip to content
Snippets Groups Projects
Commit 263a7024 authored by Demian Katz's avatar Demian Katz
Browse files

Fix for removal of Paginator::factory() from framework.

parent 2e91d379
No related merge requests found
...@@ -409,10 +409,12 @@ abstract class Results ...@@ -409,10 +409,12 @@ abstract class Results
} }
// Build the standard paginator control: // Build the standard paginator control:
return Paginator::factory($total) $adapter = new \Zend\Paginator\Adapter\Null($total);
->setCurrentPageNumber($this->getParams()->getPage()) $paginator = new Paginator($adapter);
$paginator->setCurrentPageNumber($this->getParams()->getPage())
->setItemCountPerPage($this->getParams()->getLimit()) ->setItemCountPerPage($this->getParams()->getLimit())
->setPageRange(11); ->setPageRange(11);
return $paginator;
} }
/** /**
......
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