Commit f6d914e7 authored by alexpott's avatar alexpott

Issue #3004228 by mpp, Lendude, drunken monkey: Consistently use ViewExecutable::usePager()

parent 788437c6
......@@ -925,7 +925,7 @@ public function initPager() {
if (!isset($this->pager)) {
$this->pager = $this->display_handler->getPlugin('pager');
if ($this->pager->usePager()) {
if ($this->usePager()) {
$this->pager->setCurrentPage($this->current_page);
}
......@@ -951,7 +951,7 @@ public function initPager() {
* The render array of the pager if it's set, blank string otherwise.
*/
public function renderPager($exposed_input) {
if (!empty($this->pager) && $this->pager->usePager()) {
if ($this->usePager()) {
return $this->pager->render($exposed_input);
}
......@@ -1417,7 +1417,7 @@ public function execute($display_id = NULL) {
}
if ($cache->cacheGet('results')) {
if ($this->pager->usePager()) {
if ($this->usePager()) {
$this->pager->total_items = $this->total_rows;
$this->pager->updatePageInfo();
}
......
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