mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-41708-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
f36ccdbb40
@ -4042,7 +4042,9 @@ function forum_print_attachments($post, $cm, $type) {
|
||||
require_once($CFG->libdir.'/portfoliolib.php');
|
||||
}
|
||||
|
||||
$files = $fs->get_area_files($context->id, 'mod_forum', 'attachment', $post->id, "timemodified", false);
|
||||
// We retrieve all files according to the time that they were created. In the case that several files were uploaded
|
||||
// at the sametime (e.g. in the case of drag/drop upload) we revert to using the filename.
|
||||
$files = $fs->get_area_files($context->id, 'mod_forum', 'attachment', $post->id, "filename", false);
|
||||
if ($files) {
|
||||
if ($canexport) {
|
||||
$button = new portfolio_add_button();
|
||||
|
Loading…
x
Reference in New Issue
Block a user