aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-05 21:27:11 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-05 21:27:11 -0400
commitc886ddb8b3d13d39068bf882cf82d731df6df688 (patch)
tree0d20aa2c39dd3157ad0aafb3c8c6803511a6127d /mod/groups/lib
parentb69746ed748ca3eda46e52f80b15defa951fd7c9 (diff)
downloadelgg-c886ddb8b3d13d39068bf882cf82d731df6df688.tar.gz
elgg-c886ddb8b3d13d39068bf882cf82d731df6df688.tar.bz2
Fixes #4522 fixes titles on group list pages
Diffstat (limited to 'mod/groups/lib')
-rw-r--r--mod/groups/lib/groups.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index 536d416df..51ae89a87 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -106,7 +106,11 @@ function groups_handle_owned_page() {
$page_owner = elgg_get_page_owner_entity();
- $title = elgg_echo('groups:owned');
+ if ($page_owner->guid == elgg_get_logged_in_user_guid()) {
+ $title = elgg_echo('groups:owned');
+ } else {
+ $title = elgg_echo('groups:owned:user', array($page_owner->name));
+ }
elgg_push_breadcrumb($title);
elgg_register_title_button();
@@ -137,7 +141,11 @@ function groups_handle_mine_page() {
$page_owner = elgg_get_page_owner_entity();
- $title = elgg_echo('groups:yours');
+ if ($page_owner->guid == elgg_get_logged_in_user_guid()) {
+ $title = elgg_echo('groups:yours');
+ } else {
+ $title = elgg_echo('groups:user', array($page_owner->name));
+ }
elgg_push_breadcrumb($title);
elgg_register_title_button();