MDL-28100 - page resource was not using context for text filtering
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
5d7b69cd80
commit
e5180a491c
+5
-2
@@ -92,8 +92,11 @@ if (!empty($options['printintro'])) {
|
||||
}
|
||||
|
||||
$content = file_rewrite_pluginfile_urls($page->content, 'pluginfile.php', $context->id, 'mod_page', 'content', $page->revision);
|
||||
$formatoptions = array('noclean'=>true, 'overflowdiv'=>true);
|
||||
$content = format_text($content, $page->contentformat, $formatoptions, $course->id);
|
||||
$formatoptions = new stdClass;
|
||||
$formatoptions->noclean = true;
|
||||
$formatoptions->overflowdiv = true;
|
||||
$formatoptions->context = $context;
|
||||
$content = format_text($content, $page->contentformat, $formatoptions);
|
||||
echo $OUTPUT->box($content, "generalbox center clearfix");
|
||||
|
||||
$strlastmodified = get_string("lastmodified");
|
||||
|
||||
Reference in New Issue
Block a user