diff options
author | Sem <sembrestels@riseup.net> | 2013-11-07 06:13:49 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-07 06:13:49 +0100 |
commit | c4d2081ecbd7e58c3a684c77ef18a675e534a153 (patch) | |
tree | 560962a2de7ebd6405f57561902fbea459cca340 /views | |
parent | 3ea9610796770bb2ba54d3c8c0f465a22eb9e3c8 (diff) | |
download | elgg-c4d2081ecbd7e58c3a684c77ef18a675e534a153.tar.gz elgg-c4d2081ecbd7e58c3a684c77ef18a675e534a153.tar.bz2 |
Do not display watching video in sidebar (thanks to ura soul).
Diffstat (limited to 'views')
-rw-r--r-- | views/default/page/elements/videolist_block.php | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |