mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
lesson MDL-23456 in lesson module glossary autolinking was happening in question answers but not the questions themselves
This commit is contained in:
parent
7ee9d9c881
commit
6999d9cf75
@ -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 '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user