From c982d78c20650a182cd9580c13409bca2214fc25 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 23 Feb 2018 08:56:42 +0800 Subject: [PATCH] MDL-61522 mod_glossary: use full url in links --- mod/glossary/view.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mod/glossary/view.php b/mod/glossary/view.php index b0ecb65c438..b24ca88b3b3 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -379,7 +379,7 @@ if ($glossary->intro && $showcommonelements) { /// Search box if ($showcommonelements ) { - echo '
'; + echo ''; if ($mode == 'search') { @@ -433,7 +433,10 @@ if ($allentries) { } //Build paging bar - $paging = glossary_get_paging_bar($count, $page, $entriesbypage, "view.php?id=$id&mode=$mode&hook=".urlencode($hook)."&sortkey=$sortkey&sortorder=$sortorder&fullsearch=$fullsearch&",9999,10,'  ', $specialtext, -1); + $baseurl = new moodle_url('/mod/glossary/view.php', ['id' => $id, 'mode' => $mode, 'hook' => $hook, + 'sortkey' => $sortkey, 'sortorder' => $sortorder, 'fullsearch' => $fullsearch]); + $paging = glossary_get_paging_bar($count, $page, $entriesbypage, $baseurl->out() . '&', + 9999, 10, '  ', $specialtext, -1); echo '
'; echo $paging;