aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
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 /engine/lib/users.php
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 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index fcb489394..2f5d37551 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1062,7 +1062,10 @@ function elgg_set_user_validation_status($user_guid, $status, $method = '') {
* @since 1.8.0
*/
function elgg_get_user_validation_status($user_guid) {
- $md = get_metadata_byname($user_guid, 'validated');
+ $md = elgg_get_metadata(array(
+ 'guid' => $user_guid,
+ 'metadata_name' => 'validated'
+ ));
if ($md == false) {
return;
}
@@ -1273,7 +1276,7 @@ function user_avatar_hook($hook, $entity_type, $returnvalue, $params) {
*/
function elgg_user_hover_menu($hook, $type, $return, $params) {
$user = $params['entity'];
-
+
if (elgg_is_logged_in()) {
if (elgg_get_logged_in_user_guid() != $user->guid) {
if ($user->isFriend()) {
@@ -1428,7 +1431,7 @@ function elgg_profile_page_handler($page) {
/**
* Members page handler
- *
+ *
* @param array $page url segments
*/
function elgg_members_page_handler($page) {