mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
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:
parent
0b46f19e89
commit
ea0de12f10
10 changed files with 135 additions and 16 deletions
|
@ -2466,6 +2466,7 @@ class data_portfolio_caller extends portfolio_module_caller_base {
|
|||
$this->singlerecord = $DB->get_record('data_records', array('id' => $callbackargs['record']));
|
||||
$this->singlerecord->content = $DB->get_records('data_content', array('recordid' => $this->singlerecord->id));
|
||||
$this->exporttype = 'single';
|
||||
$this->supportedformats = array(PORTFOLIO_FORMAT_HTML);
|
||||
} else {
|
||||
// all records as csv or whatever
|
||||
$this->selectedfields = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue