mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
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:
parent
92fb7dd3a5
commit
cb4492c200
5 changed files with 203 additions and 163 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue