diff --git a/module/VuFind/src/VuFind/Search/Base/Results.php b/module/VuFind/src/VuFind/Search/Base/Results.php index 6a533da282b1590d4f57b5cdd4002f40ec60a6d8..558797eccb5b46a02ccc98b590624d1ac4590445 100644 --- a/module/VuFind/src/VuFind/Search/Base/Results.php +++ b/module/VuFind/src/VuFind/Search/Base/Results.php @@ -409,10 +409,12 @@ abstract class Results } // Build the standard paginator control: - return Paginator::factory($total) - ->setCurrentPageNumber($this->getParams()->getPage()) + $adapter = new \Zend\Paginator\Adapter\Null($total); + $paginator = new Paginator($adapter); + $paginator->setCurrentPageNumber($this->getParams()->getPage()) ->setItemCountPerPage($this->getParams()->getLimit()) ->setPageRange(11); + return $paginator; } /**