From: Cash Costello Date: Wed, 26 Oct 2011 11:30:58 +0000 (-0400) Subject: Fixes #3958 added special catch for liking groups X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fe757623603600caf0a74cbead4a02d0bd95388a;p=lorea%2Felgg.git Fixes #3958 added special catch for liking groups --- diff --git a/mod/likes/start.php b/mod/likes/start.php index 76b48a369..690d7c052 100644 --- a/mod/likes/start.php +++ b/mod/likes/start.php @@ -60,6 +60,12 @@ function likes_entity_menu_setup($hook, $type, $return, $params) { function likes_river_menu_setup($hook, $type, $return, $params) { if (elgg_is_logged_in()) { $item = $params['item']; + + // only like group creation #3958 + if ($item->type == "group" && $item->view != "river/group/create") { + return $return; + } + $object = $item->getObjectEntity(); if (!elgg_in_context('widgets') && $item->annotation_id == 0) { if ($object->canAnnotate(0, 'likes')) {