]> git.mjollnir.org Git - moodle.git/commitdiff
Error message for restricted users
authormoodler <moodler>
Fri, 30 Jan 2004 09:55:57 +0000 (09:55 +0000)
committermoodler <moodler>
Fri, 30 Jan 2004 09:55:57 +0000 (09:55 +0000)
lang/en/error.php
lib/moodlelib.php

index e0086dc35e97c3181ee69b7a516e4fc9f1931ee6..d82cb19c705a06f80e7164878c72ee90a1078630 100755 (executable)
@@ -6,6 +6,7 @@ $string['erroronline'] = 'Error on line $a';
 $string['fieldrequired'] = '\"$a\" is a required field';
 $string['invalidfieldname'] = '\"$a\" is not a valid field name';
 $string['missingfield'] = 'Field \"$a\" is missing';
+$string['restricteduser'] = 'Sorry, but you are currently restricted from doing that.';
 $string['unknowncourse'] = 'Unknown course named \"$a\"';
 $string['usernotaddederror'] = 'User \"$a\" not added - unknown error';
 $string['usernotaddedregistered'] = 'User \"$a\" not added - already registered';
index 767e835c582b116fd87b3b170182b3bb6517f6a8..41dfbbb261a0e7a5403e33bfb2254d87a8e33916 100644 (file)
@@ -478,7 +478,7 @@ function check_for_restricted_user($username=NULL, $redirect="") {
     if (!empty($CFG->restrictusers)) {
         $names = explode(',', $CFG->restrictusers);
         if (in_array($username, $names)) {
-            error(get_string("restricteduser"), $redirect);
+            error(get_string("restricteduser", "error"), $redirect);
         }
     }
 }