From: moodler Date: Fri, 17 Oct 2003 15:30:18 +0000 (+0000) Subject: Fixed category linking. :-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc04ce954758c26c6cdc809260ed74e23ad97958;p=moodle.git Fixed category linking. :-) --- diff --git a/mod/glossary/dynalink.php b/mod/glossary/dynalink.php index 65f8656a46..d1c0472ef9 100644 --- a/mod/glossary/dynalink.php +++ b/mod/glossary/dynalink.php @@ -33,6 +33,7 @@ if ( $concepts ) { $lastglossary = 0; $lastcategory = 0; + $cm = get_coursemodule_from_instance("glossary", $glossary->id, $courseid); foreach ( $concepts as $concept ) { if ( $lastglossary != $concept->glossaryid ) { $glossary = get_record("glossary","id",$concept->glossaryid); @@ -46,7 +47,7 @@ } $title = strip_tags("$glossary->name: " . get_string("category","glossary"). " $category->name"); - $href_tag_begin = "wwwroot/mod/glossary/view.php?id=182¤tview=categories&cat=$concept->id\">"; + $href_tag_begin = "wwwroot/mod/glossary/view.php?id=$cm->id¤tview=categories&cat=$concept->id\">"; } else { $title = strip_tags("$glossary->name: $concept->concept"); $href_tag_begin = "wwwroot/mod/glossary/showentry.php?courseid=$courseid&concept=$concept->concept\" ".