diff options
Diffstat (limited to 'views/default/forms/profile/edit.php')
-rw-r--r-- | views/default/forms/profile/edit.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/default/forms/profile/edit.php b/views/default/forms/profile/edit.php index 4de6c47fe..4d2987a03 100644 --- a/views/default/forms/profile/edit.php +++ b/views/default/forms/profile/edit.php @@ -9,14 +9,17 @@ <div> <label><?php echo elgg_echo('user:name:label'); ?></label> - <?php echo elgg_view('input/text',array('internalname' => 'name', 'value' => $vars['entity']->name)); ?> + <?php echo elgg_view('input/text', array('internalname' => 'name', 'value' => $vars['entity']->name)); ?> </div> <?php $profile_fields = elgg_get_config('profile_fields'); if (is_array($profile_fields) && count($profile_fields) > 0) { foreach ($profile_fields as $shortname => $valtype) { - $metadata = get_metadata_byname($vars['entity']->guid, $shortname); + $metadata = elgg_get_metadata(array( + 'guid' => $vars['entity']->guid, + 'metadata_name' => $shortname + )); if ($metadata) { if (is_array($metadata)) { $value = ''; |