]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed some error strings bug 2618
authormoodler <moodler>
Thu, 20 Apr 2006 14:04:51 +0000 (14:04 +0000)
committermoodler <moodler>
Thu, 20 Apr 2006 14:04:51 +0000 (14:04 +0000)
user/edit.php

index a3c8bedddabeb574ec03f48cb94233776fc07406..a02c55f88e4b913053aed6436d5252627d63251a 100644 (file)
     }
 
     if (isguest()) {
-        error("The guest user cannot edit their profile.");
+        print_error('guestnoeditprofile');
     }
 
     if (isguest($user->id)) {
-        error("Sorry, the guest user cannot be edited.");
+        print_error('guestnoeditprofileother');
     }
 
 
@@ -72,7 +72,7 @@
     if ($usernew = data_submitted()) {
 
         if (($USER->id <> $usernew->id) && !isadmin()) {
-            error("You can only edit your own information");
+            print_error('onlyeditown');
         }
 
         if (isset($USER->username)) {