diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:16:54 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:16:54 +0000 |
commit | 3c083f6c4ff4d354a546e03477e7a4acbb16d4a9 (patch) | |
tree | 961ad1135905070b95a51bc0c6bdbd948754b562 /engine | |
parent | 298114995174acf451cc1477fdeec34a42ef608b (diff) | |
download | elgg-3c083f6c4ff4d354a546e03477e7a4acbb16d4a9.tar.gz elgg-3c083f6c4ff4d354a546e03477e7a4acbb16d4a9.tar.bz2 |
rewrote the display of likes
git-svn-id: http://code.elgg.org/elgg/trunk@7748 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/elgglib.php | 9 |
1 files changed, 2 insertions, 7 deletions
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); } /** |