From 6c735edbaefb6b38545c0f730bc6e109fb14f561 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Mar 2011 16:49:00 +0000 Subject: displaying a no activity message on the activity page for new groups git-svn-id: http://code.elgg.org/elgg/trunk@8683 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/languages/en.php | 2 +- mod/groups/lib/groups.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index bd4d3209f..dbdc0a128 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -60,7 +60,7 @@ $english = array( 'groups:activity' => "Group activity", 'groups:enableactivity' => 'Enable group activity', - 'groups:no_activity' => "There is no group activity yet", + 'groups:activity:none' => "There is no group activity yet", 'groups:notfound' => "Group not found", 'groups:notfound:details' => "The requested group either does not exist or you do not have access to it", diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php index dbbaf4366..0855f73d6 100644 --- a/mod/groups/lib/groups.php +++ b/mod/groups/lib/groups.php @@ -242,7 +242,10 @@ function groups_handle_activity_page($guid) { 'joins' => array("JOIN {$db_prefix}entities e ON e.guid = rv.object_guid"), 'wheres' => array("e.container_guid = $guid") )); - + if (!$content) { + $content = '

' . elgg_echo('groups:activity:none') . '

'; + } + $params = array( 'content' => $content, 'title' => $title, -- cgit v1.2.3