mirror of
https://github.com/e107inc/e107.git
synced 2025-10-24 11:16:22 +02:00
Fixes #5396 toVideo dimensions.
This commit is contained in:
@@ -5112,6 +5112,11 @@ class e_parse
|
||||
$height = varset($parm['h'], 240);
|
||||
$mime = varset($parm['mime'], 'video/mp4');
|
||||
|
||||
if($height === 0)
|
||||
{
|
||||
$height = 'auto';
|
||||
}
|
||||
|
||||
return '
|
||||
<div class="video-responsive">
|
||||
<video width="' . $width . '" height="' . $height . '" controls>
|
||||
|
||||
@@ -1267,7 +1267,8 @@ class e_media
|
||||
{
|
||||
|
||||
case "video":
|
||||
$preview = $tp->toVideo($default, array('w'=>$width, 'h'=> ($height - 50)));
|
||||
$h = (!is_numeric($height) || $height < 1) ? 0 : ($height - 50);
|
||||
$preview = $tp->toVideo($default, array('w'=>$width, 'h'=>$h ));
|
||||
break;
|
||||
|
||||
case "audio":
|
||||
|
||||
Reference in New Issue
Block a user