MDL-57169 backup: ensure images in category descriptions are shown

This commit is contained in:
David Herney
2016-11-29 11:44:01 +08:00
committed by Mark Nelson
parent aaa2f52b97
commit cd6ba4eff2
+3 -1
View File
@@ -740,10 +740,12 @@ class core_backup_renderer extends plugin_renderer_base {
if (!$category->visible) {
$row->attributes['class'] .= ' dimmed';
}
$context = context_coursecat::instance($category->id);
$row->cells = array(
html_writer::empty_tag('input', array('type' => 'radio', 'name' => 'targetid', 'value' => $category->id)),
format_string($category->name, true, array('context' => context_coursecat::instance($category->id))),
format_text($category->description, $category->descriptionformat, array('overflowdiv' => true))
format_text(file_rewrite_pluginfile_urls($category->description, 'pluginfile.php', $context->id,
'coursecat', 'description', null), $category->descriptionformat, array('overflowdiv' => true))
);
$table->data[] = $row;
}