From 536c037bfa6a04a2a08db94330c9a12fe22cd6cb Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Tue, 21 Feb 2012 22:53:22 -0800 Subject: Fixes #4335. Cleaned up the notifications for new content. --- mod/file/start.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mod/file/start.php') diff --git a/mod/file/start.php b/mod/file/start.php index f8b512318..120129276 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -200,9 +200,13 @@ function file_notify_message($hook, $entity_type, $returnvalue, $params) { if (($entity instanceof ElggEntity) && ($entity->getSubtype() == 'file')) { $descr = $entity->description; $title = $entity->title; - $url = elgg_get_site_url() . "view/" . $entity->guid; $owner = $entity->getOwnerEntity(); - return $owner->name . ' ' . elgg_echo("file:via") . ': ' . $entity->title . "\n\n" . $descr . "\n\n" . $entity->getURL(); + return elgg_echo('file:notification', array( + $owner->name, + $title, + $descr, + $entity->getURL() + )); } return null; } -- cgit v1.2.3