mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
oembed: ensure that width and height are returned as type int and not float
This commit is contained in:
parent
928fce875e
commit
01b541d8b0
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ class Oep extends \Zotlabs\Web\Controller {
|
|||
$ret['type'] = 'rich';
|
||||
|
||||
$w = (($maxwidth) ? $maxwidth : 640);
|
||||
$h = (($maxheight) ? $maxheight : $w * 2 / 3);
|
||||
$h = (($maxheight) ? $maxheight : intval($w * 2 / 3));
|
||||
|
||||
$ret['html'] = '<div style="width: ' . $w . '; height: ' . $h . '; font-family: sans-serif,arial,freesans;" >' . $o . '</div>';
|
||||
|
||||
|
@ -167,7 +167,7 @@ class Oep extends \Zotlabs\Web\Controller {
|
|||
$ret['type'] = 'rich';
|
||||
|
||||
$w = (($maxwidth) ? $maxwidth : 640);
|
||||
$h = (($maxheight) ? $maxheight : $w * 2 / 3);
|
||||
$h = (($maxheight) ? $maxheight : intval($w * 2 / 3));
|
||||
|
||||
$ret['html'] = '<div style="width: ' . $w . '; height: ' . $h . '; font-family: sans-serif,arial,freesans;" >' . $o . '</div>';
|
||||
|
||||
|
|
Loading…
Reference in a new issue