aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/likes/display.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 22:39:46 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 22:39:46 +0000
commitcc6b7d1d223241e397e0d41354924e74606eeffc (patch)
tree0ab9761a9b4db387edd3f3b17568bbee1c2b78c6 /views/default/core/likes/display.php
parentca9ed0b16163dcf77154c0adc702e9f4c63df13c (diff)
downloadelgg-cc6b7d1d223241e397e0d41354924e74606eeffc.tar.gz
elgg-cc6b7d1d223241e397e0d41354924e74606eeffc.tar.bz2
Refs #650. Replaced calls to get_annotations() by elgg_get_annotations().
git-svn-id: http://code.elgg.org/elgg/trunk@8182 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/core/likes/display.php')
-rw-r--r--views/default/core/likes/display.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/core/likes/display.php b/views/default/core/likes/display.php
index 209b6de2d..a2f6b7799 100644
--- a/views/default/core/likes/display.php
+++ b/views/default/core/likes/display.php
@@ -1,6 +1,6 @@
<?php
/**
- * Elgg likes display
+ * Elgg likes display
*
* @package Elgg
*
@@ -25,7 +25,12 @@ if (!elgg_annotation_exists($guid, 'likes')) {
);
$likes_button = elgg_view('output/url', $params);
} else {
- $likes = get_annotations($guid, '', '', 'likes', '', elgg_get_logged_in_user_guid());
+ $options = array(
+ 'guid' => $guid,
+ 'annotation_name' => 'likes',
+ 'owner_guid' => get_logged_in_user_guid()
+ );
+ $likes = elgg_get_annotations($options);
$url = elgg_get_site_url() . "action/likes/delete?annotation_id={$likes[0]->id}";
$params = array(
'href' => $url,