@@ -58,8 +58,8 @@ function __construct() {
58
58
function user_login ($ username , $ password ) {
59
59
global $ CFG , $ DB ;
60
60
61
- $ extusername = textlib ::convert ($ username , 'utf-8 ' , $ this ->config ->extencoding );
62
- $ extpassword = textlib ::convert ($ password , 'utf-8 ' , $ this ->config ->extencoding );
61
+ $ extusername = core_text ::convert ($ username , 'utf-8 ' , $ this ->config ->extencoding );
62
+ $ extpassword = core_text ::convert ($ password , 'utf-8 ' , $ this ->config ->extencoding );
63
63
64
64
if ($ this ->is_internal ()) {
65
65
// Lookup username externally, but resolve
@@ -176,7 +176,7 @@ function db_attributes() {
176
176
function get_userinfo ($ username ) {
177
177
global $ CFG ;
178
178
179
- $ extusername = textlib ::convert ($ username , 'utf-8 ' , $ this ->config ->extencoding );
179
+ $ extusername = core_text ::convert ($ username , 'utf-8 ' , $ this ->config ->extencoding );
180
180
181
181
$ authdb = $ this ->db_init ();
182
182
@@ -199,7 +199,7 @@ function get_userinfo($username) {
199
199
$ fields_obj = $ rs ->FetchObj ();
200
200
$ fields_obj = (object )array_change_key_case ((array )$ fields_obj , CASE_LOWER );
201
201
foreach ($ selectfields as $ localname =>$ externalname ) {
202
- $ result [$ localname ] = textlib ::convert ($ fields_obj ->{$ localname }, $ this ->config ->extencoding , 'utf-8 ' );
202
+ $ result [$ localname ] = core_text ::convert ($ fields_obj ->{$ localname }, $ this ->config ->extencoding , 'utf-8 ' );
203
203
}
204
204
}
205
205
$ rs ->Close ();
@@ -426,7 +426,7 @@ function user_exists($username) {
426
426
// Init result value.
427
427
$ result = false ;
428
428
429
- $ extusername = textlib ::convert ($ username , 'utf-8 ' , $ this ->config ->extencoding );
429
+ $ extusername = core_text ::convert ($ username , 'utf-8 ' , $ this ->config ->extencoding );
430
430
431
431
$ authdb = $ this ->db_init ();
432
432
@@ -501,7 +501,7 @@ function update_user_record($username, $updatekeys=false) {
501
501
global $ CFG , $ DB ;
502
502
503
503
//just in case check text case
504
- $ username = trim (textlib ::strtolower ($ username ));
504
+ $ username = trim (core_text ::strtolower ($ username ));
505
505
506
506
// get the current user record
507
507
$ user = $ DB ->get_record ('user ' , array ('username ' =>$ username , 'mnethostid ' =>$ CFG ->mnet_localhost_id ));
@@ -569,7 +569,7 @@ function user_update($olduser, $newuser) {
569
569
return false ;
570
570
}
571
571
572
- $ extusername = textlib ::convert ($ olduser ->username , 'utf-8 ' , $ this ->config ->extencoding );
572
+ $ extusername = core_text ::convert ($ olduser ->username , 'utf-8 ' , $ this ->config ->extencoding );
573
573
574
574
$ authdb = $ this ->db_init ();
575
575
@@ -586,7 +586,7 @@ function user_update($olduser, $newuser) {
586
586
}
587
587
$ nuvalue = $ newuser ->$ key ;
588
588
if ($ nuvalue != $ value ) {
589
- $ update [] = $ this ->config ->{"field_map_ $ key " }."=' " .$ this ->ext_addslashes (textlib ::convert ($ nuvalue , 'utf-8 ' , $ this ->config ->extencoding ))."' " ;
589
+ $ update [] = $ this ->config ->{"field_map_ $ key " }."=' " .$ this ->ext_addslashes (core_text ::convert ($ nuvalue , 'utf-8 ' , $ this ->config ->extencoding ))."' " ;
590
590
}
591
591
}
592
592
if (!empty ($ update )) {
0 commit comments