Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28100 - page resource was not using context for text filtering

  • Loading branch information...
commit e4318be03049a152630801ecba5a63bb3484770b 1 parent 4c26ea1
@danpoltawski danpoltawski authored stronk7 committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 mod/page/view.php
View
7 mod/page/view.php
@@ -92,8 +92,11 @@
}
$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");
Please sign in to comment.
Something went wrong with that request. Please try again.