MDL-52388 output: Only stop displaying pager next link on last page
Thank you to Brenda Uga for working on this.
This commit is contained in:
@@ -2459,7 +2459,7 @@ class paging_bar implements renderable {
|
||||
|
||||
$pagenum = $this->page + 1;
|
||||
|
||||
if ($pagenum != $displaypage) {
|
||||
if ($pagenum != $lastpage) {
|
||||
$this->nextlink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$pagenum)), get_string('next'), array('class'=>'next'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user