diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-26 07:30:58 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-26 07:30:58 -0400 |
commit | fe757623603600caf0a74cbead4a02d0bd95388a (patch) | |
tree | 7c594d8a64cdf45166f61357dc69bd3d98c332e0 /mod/likes/start.php | |
parent | deda57ffd5e91cd0a032d29ecbc0970b345bdb72 (diff) | |
download | elgg-fe757623603600caf0a74cbead4a02d0bd95388a.tar.gz elgg-fe757623603600caf0a74cbead4a02d0bd95388a.tar.bz2 |
Fixes #3958 added special catch for liking groups
Diffstat (limited to 'mod/likes/start.php')
-rw-r--r-- | mod/likes/start.php | 6 |
1 files changed, 6 insertions, 0 deletions
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')) { |