]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15420 fixed wrong show submission to others test; merged from MOODLE_19_STABLE
authorskodak <skodak>
Thu, 28 Aug 2008 07:23:05 +0000 (07:23 +0000)
committerskodak <skodak>
Thu, 28 Aug 2008 07:23:05 +0000 (07:23 +0000)
mod/assignment/lib.php

index 8f92902c6e20b9dc57f4e53b0ccb437dbfdd4cd4..c8f6326dc113073ba5d9835bfe7af065db0764b1 100644 (file)
@@ -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;
             }