filters MDL-23456 turned on filtering for mod intros

This commit is contained in:
Andrew Davis 2010-07-22 08:44:09 +00:00
parent 396ee01f53
commit 64fbb8c476

View File

@ -1359,7 +1359,7 @@ function filter_text($text, $courseid=NULL) {
function format_module_intro($module, $activity, $cmid, $filter=true) {
global $CFG;
require_once("$CFG->libdir/filelib.php");
$options = (object)array('noclean'=>true, 'para'=>false, 'filter'=>false);
$options = (object)array('noclean'=>true, 'para'=>false, 'filter'=>true);
$context = get_context_instance(CONTEXT_MODULE, $cmid);
$intro = file_rewrite_pluginfile_urls($activity->intro, 'pluginfile.php', $context->id, 'mod_'.$module, 'intro', null);
return trim(format_text($intro, $activity->introformat, $options));