diff --git a/system/Pager/PagerRenderer.php b/system/Pager/PagerRenderer.php index 1e5ea901e3d2..f19acca63606 100644 --- a/system/Pager/PagerRenderer.php +++ b/system/Pager/PagerRenderer.php @@ -171,11 +171,11 @@ public function getPrevious() if ($this->segment === 0) { - $uri->addQuery($this->pageSelector, $this->first - 1); + $uri->addQuery($this->pageSelector, $this->current - 1); } else { - $uri->setSegment($this->segment, $this->first - 1); + $uri->setSegment($this->segment, $this->current - 1); } return (string) $uri; @@ -215,11 +215,11 @@ public function getNext() if ($this->segment === 0) { - $uri->addQuery($this->pageSelector, $this->last + 1); + $uri->addQuery($this->pageSelector, $this->current + 1); } else { - $uri->setSegment($this->segment, $this->last + 1); + $uri->setSegment($this->segment, $this->current + 1); } return (string) $uri;