X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Foembed.php;h=715a0ba5bd6454445043bea6875bdad17a5fd112;hb=57f114d7e1955eb22167b12a9d2453ab096531cc;hp=de597bbb37ab91bfe9604b01683b0c9dbb80d3ba;hpb=c6b04aa922326ab86339790f3106b8128b5005ac;p=friendica.git diff --git a/include/oembed.php b/include/oembed.php index de597bbb37..715a0ba5bd 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -5,6 +5,7 @@ */ use Friendica\App; +use Friendica\Core\System; use Friendica\ParseUrl; use Friendica\Core\Config; @@ -83,7 +84,7 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){ $j = json_decode($txt); if ($j->type != "error") { dba::insert('oembed', array('url' => normalise_link($embedurl), - 'content' => $txt, 'created' => datetime_convert())); + 'content' => $txt, 'created' => datetime_convert()), true); } Cache::set($a->videowidth.$embedurl, $txt, CACHE_DAY); @@ -152,7 +153,7 @@ 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(), + '$baseurl' => System::baseUrl(), '$embedurl' => $embedurl, '$escapedhtml' => base64_encode($jhtml), '$tw' => $tw, @@ -249,7 +250,7 @@ function oembed_iframe($src, $width, $height) { } $width = '100%'; - $s = App::get_baseurl() . '/oembed/' . base64url_encode($src); + $s = System::baseUrl() . '/oembed/' . base64url_encode($src); return ''; }