Merge branch 'MDL-33352-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE
This commit is contained in:
+2
-2
@@ -40,7 +40,7 @@ function user_create_user($user) {
|
||||
}
|
||||
|
||||
//check username
|
||||
if ($user->username !== textlib::strtolower($user->username)) {
|
||||
if ($user->username !== textlib_get_instance()->strtolower($user->username)) {
|
||||
throw new moodle_exception('usernamelowercase');
|
||||
} else {
|
||||
if ($user->username !== clean_param($user->username, PARAM_USERNAME)) {
|
||||
@@ -91,7 +91,7 @@ function user_update_user($user) {
|
||||
|
||||
//check username
|
||||
if (isset($user->username)) {
|
||||
if ($user->username !== textlib::strtolower($user->username)) {
|
||||
if ($user->username !== textlib_get_instance()->strtolower($user->username)) {
|
||||
throw new moodle_exception('usernamelowercase');
|
||||
} else {
|
||||
if ($user->username !== clean_param($user->username, PARAM_USERNAME)) {
|
||||
|
||||
Reference in New Issue
Block a user