X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Foembed.php;h=a1945894fcaf3fb877ff36c7e2b5a2ec1e0b7e71;hb=98b727029570b96febd0c5046b688cab1a9bb882;hp=a3d2deaca00fead83b14b1fec50605179b040e2f;hpb=e9226eaf45e70bcd5a9a9f66b6b922dbc15c47ba;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 '';
}