mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
filters MDL-23456 turned on filtering for mod intros
This commit is contained in:
parent
396ee01f53
commit
64fbb8c476
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user