mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
outputcompontent MDL-20204 Regression, corrected broken conversions to html_writer::link
This commit is contained in:
parent
6f11599540
commit
abdac127cf
@ -1822,13 +1822,13 @@ class moodle_paging_bar extends html_component {
|
||||
|
||||
if ($currpage < $lastpage) {
|
||||
$lastpageactual = $lastpage - 1;
|
||||
$this->lastlink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$lastpageactual)), array('class'=>'last'), $lastpage);
|
||||
$this->lastlink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$lastpageactual)), $lastpage, array('class'=>'last'));
|
||||
}
|
||||
|
||||
$pagenum = $this->page + 1;
|
||||
|
||||
if ($pagenum != $displaypage) {
|
||||
$this->nextlink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$pagenum)), array('class'=>'next'), get_string('next'));
|
||||
$this->nextlink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$pagenum)), get_string('next'), array('class'=>'next'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user