]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removed unused code for likes notification.
authorBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 20:52:26 +0000 (13:52 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 20:52:26 +0000 (13:52 -0700)
mod/likes/start.php

index 64be8b2394a3aaf2a82d67d310a03e439b7e38d3..76b48a369add311cd01a38fb19680af95c1613ea 100644 (file)
@@ -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);