Merge branch 'MDL-41708-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Sam Hemelryk 2014-06-03 09:02:11 +12:00
commit f36ccdbb40

View File

@ -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();