MDl-30616 course: Fixed bug with module subtype links
authorSam Hemelryk <sam@moodle.com>
Wed, 14 Mar 2012 00:52:18 +0000 (13:52 +1300)
committerSam Hemelryk <sam@moodle.com>
Wed, 14 Mar 2012 00:56:22 +0000 (13:56 +1300)
course/lib.php

index 4a31b80..6282112 100644 (file)
@@ -1964,7 +1964,7 @@ function get_module_metadata($course, $modnames) {
                     if (get_string_manager()->string_exists('help' . $subtype->name, $modname)) {
                         $subtype->help = get_string('help' . $subtype->name, $modname);
                     }
-                    $subtype->link = $urlbase . $type->type;
+                    $subtype->link = $urlbase . $subtype->type;
                     $group->types[] = $subtype;
                 }
                 $modlist[$course->id][$modname] = $group;