mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
MDL-41708 mod_forum: Show attachments in lexical order
This matches the order in which they're shown in the file manager.
This commit is contained in:
parent
2ffff04be7
commit
cc8bd704ae
@ -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