diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/users.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 25b269873..04e1eeff4 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1575,13 +1575,13 @@ function elgg_profile_fields_setup() { ); $loaded_default = array(); - if ($fieldlist = get_plugin_setting('user_defined_fields','profile')) { + if ($fieldlist = elgg_get_config('profile_custom_fields')) { if (!empty($fieldlist)) { - $fieldlistarray = explode(',',$fieldlist); + $fieldlistarray = explode(',', $fieldlist); $loaded_defaults = array(); - foreach($fieldlistarray as $listitem) { - if ($translation = get_plugin_setting("admin_defined_profile_{$listitem}", 'profile')) { - $type = get_plugin_setting("admin_defined_profile_type_{$listitem}", 'profile'); + foreach ($fieldlistarray as $listitem) { + if ($translation = elgg_get_config("admin_defined_profile_{$listitem}")) { + $type = elgg_get_config("admin_defined_profile_type_{$listitem}"); $loaded_defaults["admin_defined_profile_{$listitem}"] = $type; add_translation(get_current_language(), array("profile:admin_defined_profile_{$listitem}" => $translation)); } @@ -1594,10 +1594,10 @@ function elgg_profile_fields_setup() { $profile_defaults = $loaded_defaults; } - $CONFIG->profile = elgg_trigger_plugin_hook('profile:fields', 'profile', NULL, $profile_defaults); + $CONFIG->profile_fields = elgg_trigger_plugin_hook('profile:fields', 'profile', NULL, $profile_defaults); // register any tag metadata names - foreach ($CONFIG->profile as $name => $type) { + foreach ($CONFIG->profile_fields as $name => $type) { if ($type == 'tags') { elgg_register_tag_metadata_name($name); // register a tag name translation |