mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-18401: Glossary page bar should highlight current page
This commit is contained in:
parent
4299df1daf
commit
08ec7ec62e
@ -2025,7 +2025,7 @@ function glossary_get_paging_bar($totalcount, $page, $perpage, $baseurl, $maxpag
|
||||
while ($pagenum <= $pageto) {
|
||||
$pagetoshow = $pagenum +1;
|
||||
if ($pagenum == $page && !$specialselected) {
|
||||
$code .= "$separator$pagetoshow";
|
||||
$code .= "$separator<b>$pagetoshow</b>";
|
||||
} else {
|
||||
$code .= "$separator<a href=\"{$baseurl}page=$pagenum\">$pagetoshow</a>";
|
||||
}
|
||||
@ -2045,7 +2045,7 @@ function glossary_get_paging_bar($totalcount, $page, $perpage, $baseurl, $maxpag
|
||||
if ($showspecial) {
|
||||
$code .= '<br />';
|
||||
if ($specialselected) {
|
||||
$code .= $specialtext;
|
||||
$code .= "<b>$specialtext</b>";
|
||||
} else {
|
||||
$code .= "$separator<a href=\"{$baseurl}page=$specialvalue\">$specialtext</a>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user