aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/languages/en.php2
-rw-r--r--mod/groups/start.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php
index b39bd96df..22aff6a1d 100644
--- a/mod/groups/languages/en.php
+++ b/mod/groups/languages/en.php
@@ -51,7 +51,7 @@
'groups:invite' => 'Invite friends',
'groups:inviteto' => "Invite friends to '%s'",
'groups:nofriends' => "You have no friends left who have not been invited to this group.",
-
+ 'groups:viagroups' => "via groups",
'groups:group' => "Group",
'groups:notfound' => "Group not found",
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 85b43ad77..e0bb18b92 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -137,8 +137,10 @@
if ($method == 'sms') {
return elgg_echo("groupforumtopic:new") . ': ' . $url . " ({$owner->name}: {$title})";
} else {
- return "{$title}\n({$owner->name})\n\n{$url}";
+ $owner = $entity->getOwnerEntity();
+ return $owner->username . ' ' . elgg_echo("groups:viagroups") . ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL();
}
+
}
return null;
}