From cbb0dd34d9bf281f132fd48294e698e65fc7d4c2 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 20 Sep 2005 16:59:29 +0000 Subject: [PATCH] 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) --- mod/glossary/view.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mod/glossary/view.php b/mod/glossary/view.php index 66d5dd60a2d..6476bc4d91a 100644 --- a/mod/glossary/view.php +++ b/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 '
'; echo $paging;