aboutsummaryrefslogtreecommitdiff
path: root/mod/likes/start.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-25 13:52:26 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-25 13:52:26 -0700
commitf97dad2d27466b7e80bb7bd150da6aad8dd804b2 (patch)
tree70e8e608cf06915bf6a6dfe4a0774d6db1fd2e3b /mod/likes/start.php
parent82fc52493b5b249c723e0680212788b9436b8a74 (diff)
downloadelgg-f97dad2d27466b7e80bb7bd150da6aad8dd804b2.tar.gz
elgg-f97dad2d27466b7e80bb7bd150da6aad8dd804b2.tar.bz2
Removed unused code for likes notification.
Diffstat (limited to 'mod/likes/start.php')
-rw-r--r--mod/likes/start.php26
1 files changed, 1 insertions, 25 deletions
diff --git a/mod/likes/start.php b/mod/likes/start.php
index 64be8b239..76b48a369 100644
--- a/mod/likes/start.php
+++ b/mod/likes/start.php
@@ -130,31 +130,7 @@ function likes_notify_user(ElggUser $user, ElggUser $liker, ElggEntity $entity)
if (!$entity instanceof ElggEntity) {
return false;
}
-
- // get language for entity type / subtype
- // would be nice to have standardized languages....
- // we can have:
- // item:object:<subtype>
- // subtype
- // subtype:subtype
- $type = $entity->getType();
- $subtype = $entity->getSubtype();
-
- $strings = array(
- "item:$type:$subtype",
- $subtype,
- "$subtype:$subtype"
- );
-
- $type_str = elgg_echo('likes:content');
- foreach ($strings as $string) {
- $tmp = elgg_echo($string);
- if ($tmp != $string) {
- $type_str = $tmp;
- break;
- }
- }
-
+
$title_str = $entity->title;
if (!$title_str) {
$title_str = elgg_get_excerpt($entity->description);