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 16:56:30 +08:00
parent fed66ad9e2
commit b31bbcf839

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'));
}
}