]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18401: Glossary page bar should highlight current page
authorsam_marshall <sam_marshall>
Fri, 27 Feb 2009 12:58:23 +0000 (12:58 +0000)
committersam_marshall <sam_marshall>
Fri, 27 Feb 2009 12:58:23 +0000 (12:58 +0000)
mod/glossary/lib.php

index 85024cf4a9d26b52d6bb91eaebec18ebcf196d98..72bf310fb88db28cd760388b01351f72c29c38a4 100644 (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>";
             }