From 7f2a199536b86c4764f72b46807a575524af1080 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Mar 2011 23:04:54 +0000 Subject: fixed some group page titles git-svn-id: http://code.elgg.org/elgg/trunk@8600 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/languages/en.php | 1 + mod/groups/lib/groups.php | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index b798dbf2d..bd4d3209f 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -50,6 +50,7 @@ $english = array( 'groups:join' => 'Join group', 'groups:leave' => 'Leave group', 'groups:invite' => 'Invite friends', + 'groups:invite:title' => 'Invite friends to this group', 'groups:inviteto' => "Invite friends to '%s'", 'groups:nofriends' => "You have no friends left who have not been invited to this group.", 'groups:nofriendsatall' => 'You have no friends to invite!', diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php index dc796d159..28816c309 100644 --- a/mod/groups/lib/groups.php +++ b/mod/groups/lib/groups.php @@ -53,7 +53,7 @@ function groups_handle_all_page() { ); $body = elgg_view_layout('content', $params); - echo elgg_view_page($title, $body); + echo elgg_view_page(elgg_echo('groups:all'), $body); } /** @@ -212,7 +212,7 @@ function groups_handle_profile_page($guid) { ); $body = elgg_view_layout('content', $params); - echo elgg_view_page($title, $body); + echo elgg_view_page($group->name, $body); } /** @@ -301,7 +301,10 @@ function groups_handle_invite_page($guid) { $group = get_entity($guid); - $title = elgg_echo('groups:invite'); + $title = elgg_echo('groups:invite:title'); + + elgg_push_breadcrumb($group->name, $group->getURL()); + elgg_push_breadcrumb(elgg_echo('groups:invite')); if ($group && $group->canEdit()) { $content = elgg_view_form('groups/invite', array( -- cgit v1.2.3