summaryrefslogtreecommitdiff
path: root/modules/rdf/rdf.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-12 06:44:13 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-12 06:44:13 +0000
commit8bd39cd9813ac4c1253867191e132d903e7f158b (patch)
tree33101f0179f0c1391b7fd12354686507d1e4394c /modules/rdf/rdf.module
parent3756cdd8c1a7ff2d14944fc4c4cb60346fa7f9e1 (diff)
downloadbrdo-8bd39cd9813ac4c1253867191e132d903e7f158b.tar.gz
brdo-8bd39cd9813ac4c1253867191e132d903e7f158b.tar.bz2
#711592 by linclark and scor: Fixed rdf_preprocess_user_profile() uses currently logged in user.
Diffstat (limited to 'modules/rdf/rdf.module')
-rw-r--r--modules/rdf/rdf.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module
index 00a99b0d4..ebe427724 100644
--- a/modules/rdf/rdf.module
+++ b/modules/rdf/rdf.module
@@ -476,7 +476,7 @@ function rdf_preprocess_user_profile(&$variables) {
// Adds RDFa markup to the user profile page. Fields displayed in this page
// will automatically describe the user.
// @todo move to user.module
- $account = user_load($variables['user']->uid);
+ $account = $variables['elements']['#account'];
if (!empty($account->rdf_mapping['rdftype'])) {
$variables['attributes_array']['typeof'] = $account->rdf_mapping['rdftype'];
$variables['attributes_array']['about'] = url('user/' . $account->uid);