X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foembed.php;h=a1945894fcaf3fb877ff36c7e2b5a2ec1e0b7e71;hb=0e64d462df91865c55d112aeb19f3b8169981ba9;hp=a3d2deaca00fead83b14b1fec50605179b040e2f;hpb=1fc35d5f443e802e988ea994ae712ac2c6bae8d4;p=friendica.git diff --git a/include/oembed.php b/include/oembed.php index a3d2deaca0..a1945894fc 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -165,12 +165,12 @@ function oembed_format_object($j){ $th=120; $tw = $th*$tr; $tpl=get_markup_template('oembed_video.tpl'); $ret.=replace_macros($tpl, array( - '$baseurl' => App::get_baseurl(), - '$embedurl'=>$embedurl, - '$escapedhtml'=>base64_encode($jhtml), - '$tw'=>$tw, - '$th'=>$th, - '$turl'=>$j->thumbnail_url, + '$baseurl' => App::get_baseurl(), + '$embedurl' => $embedurl, + '$escapedhtml' => base64_encode($jhtml), + '$tw' => $tw, + '$th' => $th, + '$turl' => $j->thumbnail_url, )); } else { @@ -255,13 +255,15 @@ function oembed_format_object($j){ * @see oembed_format_object() */ function oembed_iframe($src, $width, $height) { + $a = get_app(); + if (!$height || strstr($height,'%')) { $height = '200'; } $width = '100%'; - $s = App::get_baseurl() . '/oembed/'.base64url_encode($src); - return ''; + $s = App::get_baseurl() . '/oembed/' . base64url_encode($src); + return ''; }