Permalink
Browse files

Merge branch 'MDL-60377-32' of git://github.com/jleyva/moodle into MO…

…ODLE_32_STABLE
  • Loading branch information...
dmonllao committed Oct 30, 2017
2 parents bc299c8 + 19bda8a commit 83d284be42f7b2bd826f3e3c73758f51309c8f4d
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/externallib.php
@@ -256,8 +256,9 @@ public static function get_course_contents($courseid, $options = array()) {
if (!empty($cm->showdescription) or $cm->modname == 'label') {
// We want to use the external format. However from reading get_formatted_content(), $cm->content format is always FORMAT_HTML.
$options = array('noclean' => true);
list($module['description'], $descriptionformat) = external_format_text($cm->content,
FORMAT_HTML, $modcontext->id, $cm->modname, 'intro', $cm->id);
FORMAT_HTML, $modcontext->id, $cm->modname, 'intro', $cm->id, $options);
}
//url of the module

0 comments on commit 83d284b

Please sign in to comment.