Now the ALL link in the paging bar is under the

glossary->showall setting control. Bug 4072.
(http://moodle.org/bugs/bug.php?op=show&bugid=4072)
This commit is contained in:
stronk7
2005-09-20 16:59:29 +00:00
parent 7fc7e9645f
commit cbb0dd34d9
+8 -1
View File
@@ -288,7 +288,14 @@
if ($allentries) {
$paging = glossary_get_paging_bar($count, $page, $entriesbypage, "view.php?id=$id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&fullsearch=$fullsearch&",9999,10,'  ', get_string("allentries","glossary"), -1);
//Decide if we must show the ALL link in the pagebar
$specialtext = '';
if ($glossary->showall) {
$specialtext = get_string("allentries","glossary");
}
//Build paging bar
$paging = glossary_get_paging_bar($count, $page, $entriesbypage, "view.php?id=$id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&fullsearch=$fullsearch&",9999,10,'  ', $specialtext, -1);
echo '<div class="paging">';
echo $paging;