MDL-69905 block: order of activities in the block Recent Activity

The order of actions in the "Recent Actions" block has been changed to
descending
This commit is contained in:
Yan Kudriavtsev
2022-06-24 11:30:23 +08:00
committed by Simey Lameze
parent fc76c284b1
commit 18dcdd7763
@@ -143,7 +143,7 @@ class block_recent_activity extends block_base {
FROM {block_recent_activity}
WHERE timecreated > ? AND courseid = ?
GROUP BY cmid
ORDER BY MAX(timecreated) ASC";
ORDER BY MAX(timecreated) DESC";
$params = array($timestart, $course->id);
$logs = $DB->get_records_sql($sql, $params);
if (isset($logs[0])) {