MDL-40872 Restore functionality of showrecentsubmissions setting

This commit is contained in:
Marina Glancy 2013-07-25 11:54:38 +10:00
parent 1a727e121e
commit d6f418cb77

View File

@ -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)) {