MDL-29538 core_condition: changed the logic in the code so that it works with the new database structure as well as tidying up parts of the code
This commit is contained in:
@@ -3581,6 +3581,12 @@ function get_user_field_name($field) {
|
||||
// Some fields have language strings which are not the same as field name
|
||||
switch ($field) {
|
||||
case 'phone1' : return get_string('phone');
|
||||
case 'url' : return get_string('webpage');
|
||||
case 'icq' : return get_string('icqnumber');
|
||||
case 'skype' : return get_string('skypeid');
|
||||
case 'aim' : return get_string('aimid');
|
||||
case 'yahoo' : return get_string('yahooid');
|
||||
case 'msn' : return get_string('msnid');
|
||||
}
|
||||
// Otherwise just use the same lang string
|
||||
return get_string($field);
|
||||
|
||||
Reference in New Issue
Block a user