Permalink
Browse files

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)
  • Loading branch information...
1 parent 7fc7e96 commit cbb0dd34d9bf281f132fd48294e698e65fc7d4c2 stronk7 committed Sep 20, 2005
Showing with 8 additions and 1 deletion.
  1. +8 −1 mod/glossary/view.php
@@ -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;

0 comments on commit cbb0dd3

Please sign in to comment.