Merge branch 'MDL-60377-master' of git://github.com/jleyva/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 30 Oct 2017 10:42:11 +0000 (11:42 +0100)
committerDavid Monllao <davidm@moodle.com>
Mon, 30 Oct 2017 10:42:11 +0000 (11:42 +0100)
1  2 
course/externallib.php

diff --combined course/externallib.php
@@@ -268,8 -268,9 +268,9 @@@ class core_course_external extends exte
  
                          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
       */
      public static function check_updates($courseid, $tocheck, $filter = array()) {
          global $CFG, $DB;
 +        require_once($CFG->dirroot . "/course/lib.php");
  
          $params = self::validate_parameters(
              self::check_updates_parameters(),