aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/languages/en.php1
-rw-r--r--mod/groups/views/default/object/groupforumtopic.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php
index e986f99fe..847654a25 100644
--- a/mod/groups/languages/en.php
+++ b/mod/groups/languages/en.php
@@ -96,6 +96,7 @@ $english = array(
'groups:yes' => 'yes',
'groups:no' => 'no',
'groups:lastupdated' => 'Last updated %s by %s',
+ 'groups:lastcomment' => 'Last comment %s by %s',
'groups:pages' => 'Group pages',
'groups:files' => 'Group files',
diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php
index 1612eb778..e07072b78 100644
--- a/mod/groups/views/default/object/groupforumtopic.php
+++ b/mod/groups/views/default/object/groupforumtopic.php
@@ -70,7 +70,9 @@ if (get_context() == "search") {
}
if (($last_time) && ($u)) {
- $info.= "<p class='entity_subtext'>" . elgg_echo('groups:updated') . " " . elgg_view_friendly_time($last_time) . " by <a href=\"" . $u->getURL() . "\">" . $u->name . "</a></p>";
+ $commenter_link = "<a href\"{$u->getURL()}\">$u->name</a>";
+ $text = sprintf(elgg_echo('groups:lastcomment'), elgg_view_friendly_time($last_time), $commenter_link);
+ $info .= "<p class='entity_subtext'>$text</p>";
}
//get the user avatar
$icon = elgg_view("profile/icon",array('entity' => $topic_owner, 'size' => 'tiny'));