aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 22:13:22 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 22:13:22 +0000
commite903a56b44ad45da5bd908ffbf895a390b0bb77e (patch)
treeba481e52ab3789ac634a9099ac7d307f32b76471 /views/default
parentcfde4ba516f7993043c467f6c63eaeab9390232b (diff)
downloadelgg-e903a56b44ad45da5bd908ffbf895a390b0bb77e.tar.gz
elgg-e903a56b44ad45da5bd908ffbf895a390b0bb77e.tar.bz2
Refs #650. Replaced uses for get_metadata_byname() by elgg_get_metadata()
git-svn-id: http://code.elgg.org/elgg/trunk@8180 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/forms/profile/edit.php7
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 = '';