Permalink
Browse files

MDL-33829 - Glossary - Adding Rich Portfolio Export support

  • Loading branch information...
1 parent 5d6285c commit 06b53930ab89f8f8cdc19c7e503ac5350f766968 @jsnfwlr jsnfwlr committed with andyjdavis Jul 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 mod/glossary/locallib.php
@@ -266,6 +266,12 @@ public function load_data() {
$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);
+ }
}
/**

0 comments on commit 06b5393

Please sign in to comment.