Skip to content

Commit

Permalink
filters MDL-23456 turned on filtering for mod intros
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Davis committed Jul 22, 2010
1 parent 396ee01 commit 64fbb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 64fbb8c

Please sign in to comment.