MDL-16360 - added support for mime-style subformat detection for portfolio supported formats

works well with flickr plugin (tested by uploading an image as a forum attachment and being offered flickr plugin but not for normal attachments)
This commit is contained in:
mjollnir_ 2008-09-05 17:07:22 +00:00
parent 0b46f19e89
commit ea0de12f10
10 changed files with 135 additions and 16 deletions

View file

@ -2454,6 +2454,7 @@ class glossary_entry_portfolio_caller extends portfolio_module_caller_base {
|| !$this->entry = $DB->get_record('glossary_entries', array('id' => $callbackargs['entryid']))) {
throw new portfolio_caller_exception('noentry', 'glossary');
}
$this->supportedformats = array(PORTFOLIO_FORMAT_HTML);
}
public function expected_time() {