$string['mail3'] = 'You can see it in your Workshop Assignment'; //not used in 1.5
$string['mail4'] = 'A comment has been added to the assignment \'$a\' by';
$string['mail5'] = 'The new comment can be seen in the Workshop Assignment \'$a\'.';
-$string['mail6'] = 'Your assessment of the assignment \'$a\' has by reviewed.'; //not used in 1.5
+$string['mail6'] = 'Your assessment of the assignment \'$a\' has been reviewed.'; //not used in 1.5
$string['mail7'] = 'The comments given by the $a can be seen in the Workshop Assignment '; //not used in 1.5
$string['mail8'] = 'The assignment $a is a revised piece of work. ';
$string['mail9'] = 'Please assess it in the workshop assignment \'$a\'.';
$newsubmission->numfiles = 1;
if (insert_record("assignment_submissions", $newsubmission)) {
add_to_log($course->id, "assignment", "upload", "view.php?a=$assignment->id", "$assignment->id", $cm->id);
- assignment_email_teachers($course, $cm, $assignment, $submission);
+ assignment_email_teachers($course, $cm, $assignment, $newsubmission);
print_heading(get_string('uploadedfile'));
} else {
notify(get_string("uploadnotregistered", "assignment", $newfile_name) );