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:
Cameron Ball
2016-03-24 17:20:07 +08:00
parent cf0ffe26e6
commit a1c33bf60f
+1 -1
View File
@@ -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'));
}
}