Skip to content
Snippets Groups Projects
Commit 42b63518 authored by Ere Maijala's avatar Ere Maijala
Browse files

Use NullFill pagination adapter instead of Null that is deprecated.

parent 184b46cf
No related merge requests found
...@@ -463,7 +463,7 @@ abstract class Results implements ServiceLocatorAwareInterface ...@@ -463,7 +463,7 @@ abstract class Results implements ServiceLocatorAwareInterface
} }
// Build the standard paginator control: // Build the standard paginator control:
$nullAdapter = "Zend\Paginator\Adapter\Null"; $nullAdapter = "Zend\Paginator\Adapter\NullFill";
$paginator = new Paginator(new $nullAdapter($total)); $paginator = new Paginator(new $nullAdapter($total));
$paginator->setCurrentPageNumber($this->getParams()->getPage()) $paginator->setCurrentPageNumber($this->getParams()->getPage())
->setItemCountPerPage($this->getParams()->getLimit()) ->setItemCountPerPage($this->getParams()->getLimit())
...@@ -621,4 +621,4 @@ abstract class Results implements ServiceLocatorAwareInterface ...@@ -621,4 +621,4 @@ abstract class Results implements ServiceLocatorAwareInterface
[$this->getOptions(), 'translate'], func_get_args() [$this->getOptions(), 'translate'], func_get_args()
); );
} }
} }
\ No newline at end of file
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