]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
displaying a no activity message on the activity page for new groups
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 13 Mar 2011 16:49:00 +0000 (16:49 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 13 Mar 2011 16:49:00 +0000 (16:49 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8683 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/languages/en.php
mod/groups/lib/groups.php

index bd4d3209fc56c12302a9e8a8ab4da18452bf7085..dbdc0a128fd233ceddccd86d946da788363e4efc 100644 (file)
@@ -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",
index dbbaf43664c2c6dca736c431d82d21193591f10d..0855f73d660e6aa10bbfb522342794f72f7e953c 100644 (file)
@@ -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,