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:
Mark Nelson 2012-05-09 01:32:45 +08:00
parent 92fb7dd3a5
commit cb4492c200
5 changed files with 203 additions and 163 deletions

View file

@ -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);