From 1160eb5af215efa0b95c5d5b974279644f53bff6 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 28 Aug 2008 07:23:05 +0000 Subject: [PATCH] MDL-15420 fixed wrong show submission to others test; merged from MOODLE_19_STABLE --- mod/assignment/lib.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 8f92902c6e..c8f6326dc1 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -2512,7 +2512,7 @@ function assignment_print_recent_activity($course, $viewfullnames, $timestart) { continue; } - // the act of sumitting of assignemnt may be considered private - only graders will see it if specified + // the act of sumbitting of assignment may be considered private - only graders will see it if specified if (empty($CFG->assignment_showrecentsubmissions)) { if (!array_key_exists($cm->id, $grader)) { $grader[$cm->id] = has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_MODULE, $cm->id)); @@ -2631,9 +2631,8 @@ function assignment_get_recent_mod_activity(&$activities, &$index, $timestart, $ $show[] = $submission; continue; } - - // the act of sumitting of assignemnt may be considered private - only graders will see it if specified - if (!empty($CFG->assignment_showrecentsubmissions)) { + // the act of submitting of assignment may be considered private - only graders will see it if specified + if (empty($CFG->assignment_showrecentsubmissions)) { if (!$grader) { continue; } -- 2.39.5