Created
August 1, 2012 10:41
-
-
Save marxjohnson/3225716 to your computer and use it in GitHub Desktop.
Patch for Moodle 2 to remove late homework notification to students. Copyright Richard Taunton Sixth Form College, UK. Released under GNU GPL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cfe154d2c78c9b143ecf9d132fe34885842e92c3 Mon Sep 17 00:00:00 2001 | |
From: Mark Johnson <[email protected]> | |
Date: Mon, 29 Nov 2010 15:48:07 +0000 | |
Subject: [PATCH 05/78] Assignment remove late notifications. Students | |
complained that homework was flagged up as late when | |
handed in if teacher hadn't marked it. | |
--- | |
mod/assignment/lib.php | 16 ++++++++-------- | |
1 file changed, 8 insertions(+), 8 deletions(-) | |
diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php | |
index 77d8b19..191c088 100644 | |
--- a/mod/assignment/lib.php | |
+++ b/mod/assignment/lib.php | |
@@ -3687,7 +3687,7 @@ function assignment_print_overview($courses, &$htmlarray) { | |
$grading_info = grade_get_grades($assignment->course, 'mod', 'assignment', $assignment->id, $USER->id); | |
$final_grade = $grading_info->items[0]->grades[$USER->id]; | |
- $str = '<div class="assignment overview"><div class="name">'.$strassignment. ': '. | |
+ $str = '<div class="assignment overview"><div './*class="name"*/'>'.$strassignment. ': '. | |
'<a '.($assignment->visible ? '':' class="dimmed"'). | |
'title="'.$strassignment.'" href="'.$CFG->wwwroot. | |
'/mod/assignment/view.php?id='.$assignment->coursemodule.'">'. | |
@@ -3720,16 +3720,16 @@ function assignment_print_overview($courses, &$htmlarray) { | |
$submission = $mysubmissions[$assignment->id]; | |
- if ($submission->teacher == 0 && $submission->timemarked == 0 && !$final_grade->grade) { | |
- $str .= $strsubmitted . ', ' . $strnotgradedyet; | |
- } else if ($submission->grade <= 0 && !$final_grade->grade) { | |
- $str .= $strsubmitted . ', ' . $strreviewed; | |
+ if ($submission->teacher == 0 && $submission->timemarked == 0) { | |
+ $str .= /*$strsubmitted . ', ' . */$strnotgradedyet; | |
+ } else if ($submission->grade <= 0) { | |
+ $str .= /*$strsubmitted . ', ' . */$strreviewed; | |
} else { | |
- $str .= $strsubmitted . ', ' . $strgraded; | |
+ $str .= /*$strsubmitted . ', ' . */$strgraded; | |
} | |
- } else { | |
+ } /*else { | |
$str .= $strnotsubmittedyet . ' ' . assignment_display_lateness(time(), $assignment->timedue); | |
- } | |
+ }*/ | |
$str .= '</div>'; | |
} | |
$str .= '</div>'; | |
-- | |
1.7.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment