Fixed "uploaded assignment" (uploadsuccess) string
authormoodler <moodler>
Mon, 28 Oct 2002 01:30:00 +0000 (01:30 +0000)
committermoodler <moodler>
Mon, 28 Oct 2002 01:30:00 +0000 (01:30 +0000)
lang/en/assignment.php
mod/assignment/upload.php

index da41708..73798be 100644 (file)
@@ -24,6 +24,7 @@ $string['submitassignment'] = "Submit your assignment using this form";
 $string['submitted'] = "Submitted";
 $string['typeuploadsingle'] = "Upload a single file, worth between 0 - 100 marks";
 $string['uploadedfiles'] = "uploaded files";
+$string['uploadsuccess'] = "Uploaded '\$a' successfully";
 $string['viewsubmissions'] = "View \$a submitted assignments";
 $string['yoursubmission'] = "Your submission";
 
index 5ec0fda..6ba58a8 100644 (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!");
                         }