Permalink
Browse files

Fixed a hardcoded string (thanks, koen) bug #1022

  • Loading branch information...
1 parent 5c9cbb3 commit fed7c5ba943312e08067d42bf4a87444412d8e1f moodler committed Feb 4, 2004
Showing with 2 additions and 1 deletion.
  1. +1 −0 lang/en/assignment.php
  2. +1 −1 mod/assignment/lib.php
View
@@ -20,6 +20,7 @@
$string['duedate'] = 'Due date';
$string['duedateno'] = 'No due date';
$string['early'] = '$a early';
+$string['existingfiledeleted'] = 'Existing file has been deleted: $a';
$string['failedupdatefeedback'] = 'Failed to update submission feedback for user $a';
$string['feedback'] = 'Feedback';
$string['feedbackupdated'] = 'Submissions feedback updated for $a people';
View
@@ -530,7 +530,7 @@ function assignment_delete_user_files($assignment, $user, $exception) {
foreach ($files as $file) {
if ($file != $exception) {
unlink("$basedir/$file");
- notify("Existing file '$file' has been deleted!");
+ notify(get_string("existingfiledeleted", "assignment", $file));
}
}
}

0 comments on commit fed7c5b

Please sign in to comment.