MDL-46625 theme: Added a way to target the current page

This commit is contained in:
Brian Barnes
2014-07-31 13:21:16 +12:00
parent cc1dc858c0
commit 5bb55eeb21
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2354,7 +2354,7 @@ class paging_bar implements renderable {
$displaypage = $currpage + 1;
if ($this->page == $currpage) {
$this->pagelinks[] = $displaypage;
$this->pagelinks[] = html_writer::span($displaypage, 'current-page');
} else {
$pagelink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$currpage)), $displaypage);
$this->pagelinks[] = $pagelink;