Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-33352-MOODLE_21_STABLE' of git://github.com/mouneyr…

…ac/moodle into MOODLE_21_STABLE
  • Loading branch information...
commit 1cbf87e8dbe6d1f8619084400507fd699b8ae4e3 2 parents 382b95d + ec48562
@danpoltawski danpoltawski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 user/lib.php
View
4 user/lib.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.