aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-13 16:49:00 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-13 16:49:00 +0000
commit6c735edbaefb6b38545c0f730bc6e109fb14f561 (patch)
tree07e52e9a9154a64bc7619347f783cf7f05add8b2 /mod/groups
parenta152d82bda0a09256be77fb9cde9f13bb8e40a14 (diff)
downloadelgg-6c735edbaefb6b38545c0f730bc6e109fb14f561.tar.gz
elgg-6c735edbaefb6b38545c0f730bc6e109fb14f561.tar.bz2
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
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/languages/en.php2
-rw-r--r--mod/groups/lib/groups.php5
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 = '<p>' . elgg_echo('groups:activity:none') . '</p>';
+ }
+
$params = array(
'content' => $content,
'title' => $title,