From c4d2081ecbd7e58c3a684c77ef18a675e534a153 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 7 Nov 2013 06:13:49 +0100 Subject: Do not display watching video in sidebar (thanks to ura soul). --- views/default/page/elements/videolist_block.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/default/page/elements/videolist_block.php b/views/default/page/elements/videolist_block.php index 69f9394fb..a0653a09e 100644 --- a/views/default/page/elements/videolist_block.php +++ b/views/default/page/elements/videolist_block.php @@ -8,6 +8,7 @@ * @uses $vars['limit'] The number of comments to display */ +$entity_guid = get_input('guid', ELGG_ENTITIES_ANY_VALUE); $container_guid = elgg_extract('container_guid', $vars, ELGG_ENTITIES_ANY_VALUE); $container = get_entity($container_guid); @@ -19,6 +20,7 @@ $options = array( 'subtypes' => 'videolist_item', 'full_view' => false, 'pagination' => false, + 'wheres' => array('guid <> ' . $entity_guid), // exclude this item from list. ); if($container) { -- cgit v1.2.3