diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-05 21:27:11 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-05 21:27:11 -0400 |
commit | c886ddb8b3d13d39068bf882cf82d731df6df688 (patch) | |
tree | 0d20aa2c39dd3157ad0aafb3c8c6803511a6127d /mod | |
parent | b69746ed748ca3eda46e52f80b15defa951fd7c9 (diff) | |
download | elgg-c886ddb8b3d13d39068bf882cf82d731df6df688.tar.gz elgg-c886ddb8b3d13d39068bf882cf82d731df6df688.tar.bz2 |
Fixes #4522 fixes titles on group list pages
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/languages/en.php | 1 | ||||
-rw-r--r-- | mod/groups/lib/groups.php | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index 88aeccb54..4868aa334 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -12,6 +12,7 @@ $english = array( */ 'groups' => "Groups", 'groups:owned' => "Groups I own", + 'groups:owned:user' => 'Groups %s owns', 'groups:yours' => "My groups", 'groups:user' => "%s's groups", 'groups:all' => "All groups", 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(); |