MDL-33829 - Glossary - Adding Rich Portfolio Export support

This commit is contained in:
Jason Fowler
2012-09-30 10:54:52 +08:00
committed by Andrew Davis
parent 5d6285c220
commit 06b53930ab
+6
View File
@@ -266,6 +266,12 @@ class glossary_entry_portfolio_caller extends portfolio_module_caller_base {
$fs->get_area_files($context->id, 'mod_glossary', 'attachment', $this->entry->id, "timemodified", false),
$fs->get_area_files($context->id, 'mod_glossary', 'entry', $this->entry->id, "timemodified", false)
);
if (!empty($this->multifiles)) {
$this->add_format(PORTFOLIO_FORMAT_RICHHTML);
} else {
$this->add_format(PORTFOLIO_FORMAT_PLAINHTML);
}
}
/**