aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/videolist_item.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-04-18 09:07:37 +0200
committerSem <sembrestels@riseup.net>2012-04-18 09:07:37 +0200
commitb6f8691bdc26986e031a3b2d5a63db4be67dea43 (patch)
treeacdd7710e5669e5effa58359fc7032079cc7cf54 /views/default/object/videolist_item.php
parenta613b944015fd82f97a15392c0de0e7df104706d (diff)
downloadelgg-b6f8691bdc26986e031a3b2d5a63db4be67dea43.tar.gz
elgg-b6f8691bdc26986e031a3b2d5a63db4be67dea43.tar.bz2
Simplified video dimensions take.
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>";