fixed use of context when formatting instance names

This commit is contained in:
Petr Skoda
2010-08-11 17:15:52 +00:00
parent 32d661354b
commit 54475ccba2
+2 -1
View File
@@ -709,7 +709,8 @@ abstract class enrol_plugin {
$enrol = $this->get_name();
return get_string('pluginname', 'enrol_'.$enrol);
} else {
return format_string($instance->name);
$context = get_context_instance(CONTEXT_COURSE, $instance->courseid);
return format_string($instance->name, true, array('context'=>$context));
}
}