mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-40872 Restore functionality of showrecentsubmissions setting
This commit is contained in:
parent
1a727e121e
commit
d6f418cb77
@ -517,7 +517,7 @@ function assign_print_recent_activity($course, $viewfullnames, $timestart) {
|
||||
$show = array();
|
||||
$grader = array();
|
||||
|
||||
$showrecentsubmissions = get_config('mod_assign', 'showrecentsubmissions');
|
||||
$showrecentsubmissions = get_config('assign', 'showrecentsubmissions');
|
||||
|
||||
foreach ($submissions as $submission) {
|
||||
if (!array_key_exists($submission->cmid, $modinfo->get_cms())) {
|
||||
@ -670,7 +670,7 @@ function assign_get_recent_mod_activity(&$activities,
|
||||
$modinfo->groups = groups_get_user_groups($course->id);
|
||||
}
|
||||
|
||||
$showrecentsubmissions = get_config('mod_assign', 'showrecentsubmissions');
|
||||
$showrecentsubmissions = get_config('assign', 'showrecentsubmissions');
|
||||
$show = array();
|
||||
$usersgroups = groups_get_all_groups($course->id, $USER->id, $cm->groupingid);
|
||||
if (is_array($usersgroups)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user