From 3c083f6c4ff4d354a546e03477e7a4acbb16d4a9 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 18:16:54 +0000 Subject: rewrote the display of likes git-svn-id: http://code.elgg.org/elgg/trunk@7748 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'engine') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 8d2b8ed91..bc0b1b5af 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -333,7 +333,7 @@ function elgg_get_external_file($type, $location) { * @return string|false The HTML for the likes, or false on failure * * @since 1.8 - * @see @elgg_view forms/likes/edit + * @see @elgg_view core/likes/display */ function elgg_view_likes($entity) { if (!($entity instanceof ElggEntity)) { @@ -342,12 +342,7 @@ function elgg_view_likes($entity) { $params = array('entity' => $entity); - if ($likes = elgg_trigger_plugin_hook('likes', $entity->getType(), $params, false)) { - return $likes; - } else { - $likes = elgg_view('forms/likes/edit', $params); - return $likes; - } + return elgg_view('core/likes/display', $params); } /** -- cgit v1.2.3