Skip to content

Commit

Permalink
Merge branch 'MDL-28100' of git://git.luns.net.uk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 6, 2011
2 parents b274bc5 + 2207a21 commit 4357214
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mod/page/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4357214

Please sign in to comment.