]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Do not display watching video in sidebar (thanks to ura soul).
authorSem <sembrestels@riseup.net>
Thu, 7 Nov 2013 05:13:49 +0000 (06:13 +0100)
committerSem <sembrestels@riseup.net>
Thu, 7 Nov 2013 05:13:49 +0000 (06:13 +0100)
views/default/page/elements/videolist_block.php

index 69f9394fb4ec1f23f5e1fdf53b40fa6cc10bcec7..a0653a09e53fa9c84c46e284ab58680c533cf7e2 100644 (file)
@@ -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) {