aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/videolist_item.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/videolist_item.php')
-rw-r--r--views/default/object/videolist_item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/object/videolist_item.php b/views/default/object/videolist_item.php
index 5e0db00ce..a1943216d 100644
--- a/views/default/object/videolist_item.php
+++ b/views/default/object/videolist_item.php
@@ -61,11 +61,11 @@ if (elgg_in_context('widgets')) {
if ($full && !elgg_in_context('gallery')) {
- $dimensions = videolist_get_video_dimensions($entity);
+ $dimensions = elgg_get_config('videolist_dimensions');
$content = elgg_view("videolist/watch/{$entity->videotype}", array(
'entity' => $entity,
- 'width' => $dimensions['width'],
- 'height' => $dimensions['height'],
+ 'width' => (int) $dimensions['width'],
+ 'height' => (int) $dimensions['height'],
));
$content = "<div class=\"videolist-watch\">$content</div>";