aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-11-07 06:13:49 +0100
committerSem <sembrestels@riseup.net>2013-11-07 06:13:49 +0100
commitc4d2081ecbd7e58c3a684c77ef18a675e534a153 (patch)
tree560962a2de7ebd6405f57561902fbea459cca340
parent3ea9610796770bb2ba54d3c8c0f465a22eb9e3c8 (diff)
downloadelgg-c4d2081ecbd7e58c3a684c77ef18a675e534a153.tar.gz
elgg-c4d2081ecbd7e58c3a684c77ef18a675e534a153.tar.bz2
Do not display watching video in sidebar (thanks to ura soul).
-rw-r--r--views/default/page/elements/videolist_block.php2
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) {