set_page_owner($_SESSION['user']->getGUID());
$owner = $_SESSION['user'];
}
+ $friends = sprintf(elgg_echo("friends:owned"),$owner->name);
- $area1 = elgg_view_title(elgg_echo('friends'));
+ $area1 = elgg_view_title($friends);
$area2 = list_entities_from_relationship('friend',$owner->getGUID(),false,'user','',0,10,false);
$body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2);
- page_draw(sprintf(elgg_echo("friends:owned"),$owner->name),$body);
+ page_draw($friends, $body);
-?>
\ No newline at end of file
+?>
set_page_owner($_SESSION['user']->getGUID());
$owner = $_SESSION['user'];
}
-
- $area1 = elgg_view_title(elgg_echo('friends:of'));
+ $friends_of = sprintf(elgg_echo("friends:of:owned"),$owner->name);
+
+ $area1 = elgg_view_title($friends_of);
$area2 = list_entities_from_relationship('friend',$owner->getGUID(),true,'user','',0,10,false);
$body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2);
- page_draw(sprintf(elgg_echo("friends:of:owned"),$owner->name),$body);
+ page_draw($friends_of, $body);
-?>
\ No newline at end of file
+?>