aboutsummaryrefslogtreecommitdiff
path: root/friends
diff options
context:
space:
mode:
Diffstat (limited to 'friends')
-rw-r--r--friends/index.php7
-rw-r--r--friends/of.php9
2 files changed, 9 insertions, 7 deletions
diff --git a/friends/index.php b/friends/index.php
index e9e4f7374..f2e3d60be 100644
--- a/friends/index.php
+++ b/friends/index.php
@@ -16,11 +16,12 @@
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
+?>
diff --git a/friends/of.php b/friends/of.php
index f1231750c..fb7b6d659 100644
--- a/friends/of.php
+++ b/friends/of.php
@@ -16,11 +16,12 @@
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
+?>