Skip to content

Commit

Permalink
Now the ALL link in the paging bar is under the
Browse files Browse the repository at this point in the history
glossary->showall setting control. Bug 4072.
(http://moodle.org/bugs/bug.php?op=show&bugid=4072)
  • Loading branch information
stronk7 committed Sep 20, 2005
1 parent 7fc7e96 commit cbb0dd3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mod/glossary/view.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -288,7 +288,14 @@


if ($allentries) { 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 '<div class="paging">';
echo $paging; echo $paging;
Expand Down

0 comments on commit cbb0dd3

Please sign in to comment.