Index: mod/assignment/type/upload/assignment.class.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/assignment/type/upload/assignment.class.php,v retrieving revision 1.29.2.1 diff -u -r1.29.2.1 assignment.class.php --- mod/assignment/type/upload/assignment.class.php 5 Apr 2007 02:11:24 -0000 1.29.2.1 +++ mod/assignment/type/upload/assignment.class.php 16 May 2007 14:55:05 -0000 @@ -536,7 +536,12 @@ if (!$this->can_upload_file($submission)) { $this->view_header(get_string('upload')); - notify(get_string('uploaderror', 'assignment')); + if (!$this->isopen()) { + notify(get_string('uploadfaildeadlinepassed', 'assignment')); + } else { + // Something else happened + notify(get_string('uploaderror', 'assignment')); + } print_continue($returnurl); $this->view_footer(); die;