diff options
Diffstat (limited to 'views/default/object/videolist_item.php')
-rw-r--r-- | views/default/object/videolist_item.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/default/object/videolist_item.php b/views/default/object/videolist_item.php index 6ed284a43..5e0db00ce 100644 --- a/views/default/object/videolist_item.php +++ b/views/default/object/videolist_item.php @@ -7,6 +7,7 @@ $full = elgg_extract('full_view', $vars, FALSE); $entity = elgg_extract('entity', $vars, FALSE); +/* @var ElggObject $entity */ if (!$entity) { return TRUE; @@ -59,11 +60,12 @@ if (elgg_in_context('widgets')) { } if ($full && !elgg_in_context('gallery')) { - + + $dimensions = videolist_get_video_dimensions($entity); $content = elgg_view("videolist/watch/{$entity->videotype}", array( 'entity' => $entity, - 'width' => 600, - 'height' => 400, + 'width' => $dimensions['width'], + 'height' => $dimensions['height'], )); $content = "<div class=\"videolist-watch\">$content</div>"; |