Fixed "uploaded assignment" (uploadsuccess) string

This commit is contained in:
moodler
2002-10-28 01:30:00 +00:00
parent 519c5a76cd
commit 52ab14dd82
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -52,7 +52,7 @@
if ($submission) {
$submission->timemodified = time();
if (update_record("assignment_submissions", $submission)) {
print_heading("Uploaded '$newfile_name' successfully.");
print_heading(get_string("uploadsuccess", "assignment", $newfile_name) );
} else {
notify("File was uploaded OK but could not update your submission!");
}
@@ -63,7 +63,7 @@
$newsubmission->timemodified = time();
$newsubmission->numfiles = 1;
if (insert_record("assignment_submissions", $newsubmission)) {
print_heading("Uploaded '$newfile_name' successfully.");
print_heading(get_string("uploadsuccess", "assignment", $newfile_name) );
} else {
notify("'$newfile_name' was uploaded OK but submission did not register!");
}