aboutsummaryrefslogtreecommitdiff
path: root/mod/likes/actions
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-25 13:49:32 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-25 13:49:32 -0700
commit82fc52493b5b249c723e0680212788b9436b8a74 (patch)
tree69f7ba8636b343b5992894b830b66063a8e36d8c /mod/likes/actions
parent51f3c3ea8549d465fafa9c1817aa6f8cf334a404 (diff)
downloadelgg-82fc52493b5b249c723e0680212788b9436b8a74.tar.gz
elgg-82fc52493b5b249c723e0680212788b9436b8a74.tar.bz2
Fixes #3131. Added generic liking notification text.
Diffstat (limited to 'mod/likes/actions')
-rw-r--r--mod/likes/actions/likes/add.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/mod/likes/actions/likes/add.php b/mod/likes/actions/likes/add.php
index b76c1bea9..a6a8d6c45 100644
--- a/mod/likes/actions/likes/add.php
+++ b/mod/likes/actions/likes/add.php
@@ -41,18 +41,7 @@ if (!$annotation) {
// notify if poster wasn't owner
if ($entity->owner_guid != $user->guid) {
- notify_user($entity->owner_guid,
- $user->guid,
- elgg_echo('likes:email:subject'),
- elgg_echo('likes:email:body', array(
- $user->name,
- $entity->title,
- //$comment_text,
- $entity->getURL(),
- $user->name,
- $user->getURL()
- ))
- );
+ likes_notify_user($entity->getOwnerEntity(), $user, $entity);
}
system_message(elgg_echo("likes:likes"));