aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-09 03:07:40 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-09 03:07:40 +0000
commitbdb5d2b95792782ebc379e3348cad1812c1980b4 (patch)
treec923d740327b3aeb62a24246f3725ced8677a5f7 /engine/classes
parent9ea30ea494cea4c950894a0ac1131eefda10868b (diff)
downloadelgg-bdb5d2b95792782ebc379e3348cad1812c1980b4.tar.gz
elgg-bdb5d2b95792782ebc379e3348cad1812c1980b4.tar.bz2
Fixes #3058 pulls likes out as a plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8639 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggEntity.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index 69401a7e5..bfb7ce063 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -844,24 +844,6 @@ abstract class ElggEntity extends ElggData implements
}
/**
- * Count how many people have liked this entity.
- *
- * @return int Number of likes
- * @since 1.8.0
- */
- function countLikes() {
- $type = $this->getType();
- $params = array('entity' => $this);
- $number = elgg_trigger_plugin_hook('likes:count', $type, $params, false);
-
- if ($number) {
- return $number;
- } else {
- return $this->getAnnotationCalculation('likes', 'count');
- }
- }
-
- /**
* Gets an array of entities with a relationship to this entity.
*
* @param string $relationship Relationship type (eg "friends")