aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/river.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-07 00:46:44 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-07 00:46:44 +0000
commiteb10e3a2ad7589ba9778f2fa02dbb63e71665eb0 (patch)
treed0c553d68ef76339481071491b32f82a8c95afbb /engine/lib/river.php
parent9aa541bf969523f1ef507417fa2238547d69ba83 (diff)
downloadelgg-eb10e3a2ad7589ba9778f2fa02dbb63e71665eb0.tar.gz
elgg-eb10e3a2ad7589ba9778f2fa02dbb63e71665eb0.tar.bz2
not showing river buttons when displaying in widgets
git-svn-id: http://code.elgg.org/elgg/trunk@8617 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/river.php')
-rw-r--r--engine/lib/river.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index c934e9932..6bc0645a9 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -513,7 +513,7 @@ function elgg_river_add_menu_items($hook, $type, $return, $params) {
$item = $params['item'];
$object = $item->getObjectEntity();
// comments and non-objects cannot be commented on or liked
- if ($item->annotation_id == 0) {
+ if (!elgg_in_context('widgets') && $item->annotation_id == 0) {
// comments
if ($object->canComment()) {
$options = array(