lesson MDL-23456 in lesson module glossary autolinking was happening in question answers but not the questions themselves

This commit is contained in:
Andrew Davis 2010-07-27 02:10:59 +00:00
parent 7ee9d9c881
commit 6999d9cf75

View File

@ -2361,7 +2361,8 @@ abstract class lesson_page extends lesson_base {
$this->properties->contentsformat = FORMAT_HTML;
}
$context = get_context_instance(CONTEXT_MODULE, $PAGE->cm->id);
return file_rewrite_pluginfile_urls($this->properties->contents, 'pluginfile.php', $context->id, 'mod_lesson', 'page_contents', $this->properties->id);
$contents = format_text($this->properties->contents); //format text so glossary autolinking happens
return file_rewrite_pluginfile_urls($contents, 'pluginfile.php', $context->id, 'mod_lesson', 'page_contents', $this->properties->id);
} else {
return '';
}