]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/OEmbed.php
Fix undefined offset notices in Protocol\Email
[friendica.git] / src / Content / OEmbed.php
index 6eb11c7b3b2041c4a1fc40e009bdc86334eb3317..6aa76a55ac124af15540286e26b2a7be1b0efe67 100644 (file)
@@ -23,8 +23,6 @@ use Friendica\Util\ParseUrl;
 use Friendica\Util\Proxy as ProxyUtils;
 use Friendica\Util\Strings;
 
-require_once 'include/dba.php';
-
 /**
  * Handles all OEmbed content fetching and replacement
  *
@@ -58,7 +56,7 @@ class OEmbed
        {
                $embedurl = trim($embedurl, '\'"');
 
-               $a = get_app();
+               $a = \get_app();
 
                $cache_key = 'oembed:' . $a->videowidth . ':' . $embedurl;
 
@@ -366,7 +364,7 @@ class OEmbed
         */
        private static function iframe($src, $width, $height)
        {
-               $a = get_app();
+               $a = \get_app();
 
                if (!$height || strstr($height, '%')) {
                        $height = '200';