X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foembed.php;h=e2504b7eb8554e040e24e43da081d1e97da1b66d;hb=6e06d415bb1fa085515937229b167fc59acfc194;hp=1f45d2814325449ce5816e564fd7545b9ea2a4c9;hpb=fb817a29a934a68f194a42c29d3ed11da2da558f;p=friendica.git diff --git a/include/oembed.php b/include/oembed.php index 1f45d28143..e2504b7eb8 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -65,7 +65,8 @@ function oembed_fetch_url($embedurl){ } function oembed_format_object($j){ - $embedurl = $j->embedurl; + $a = get_app(); + $embedurl = $j->embedurl; $jhtml = oembed_iframe($j->embedurl,(isset($j->width) ? $j->width : null), (isset($j->height) ? $j->height : null) ); $ret=""; switch ($j->type) { @@ -78,6 +79,7 @@ function oembed_format_object($j){ $th=120; $tw = $th*$tr; $tpl=get_markup_template('oembed_video.tpl'); $ret.=replace_macros($tpl, array( + '$baseurl' => $a->get_baseurl(), '$embedurl'=>$embedurl, '$escapedhtml'=>base64_encode($jhtml), '$tw'=>$tw,