Merge branch 'MDL-49988_fix_wiki_preview' of https://github.com/DMaterka/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2017-05-31 00:30:08 +02:00
commit 32a627d7cf

View File

@ -1382,7 +1382,7 @@ function wiki_print_page_content($page, $context, $subwikiid) {
}
}
$html = file_rewrite_pluginfile_urls($page->cachedcontent, 'pluginfile.php', $context->id, 'mod_wiki', 'attachments', $subwikiid);
$html = format_text($html, FORMAT_MOODLE, array('overflowdiv'=>true, 'allowid'=>true));
$html = format_text($html, FORMAT_HTML, array('overflowdiv' => true, 'allowid' => true));
echo $OUTPUT->box($html);
echo $OUTPUT->tag_list(core_tag_tag::get_item_tags('mod_wiki', 'wiki_pages', $page->id),