MDL-18401: Glossary page bar should highlight current page

This commit is contained in:
sam_marshall 2009-02-27 12:58:23 +00:00
parent 4299df1daf
commit 08ec7ec62e

View File

@ -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>";
}