X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FOembed.php;h=b0c4d092a1ac60aa6a4754ef9c1b52331507b549;hb=388c0b69d63c5e252b6c9d7f8c4461681b22db16;hp=e31fde6313ccf6cb07377d774532c641e9b2e582;hpb=bd62d548db39b617d087aabb536435004adf0470;p=friendica.git diff --git a/src/Module/Oembed.php b/src/Module/Oembed.php index e31fde6313..b0c4d092a1 100644 --- a/src/Module/Oembed.php +++ b/src/Module/Oembed.php @@ -1,9 +1,29 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Content; +use Friendica\DI; use Friendica\Util\Strings; /** @@ -17,9 +37,9 @@ use Friendica\Util\Strings; */ class Oembed extends BaseModule { - public static function content($parameters) + public static function content(array $parameters = []) { - $a = self::getApp(); + $a = DI::app(); // Unused form: /oembed/b2h?url=... if ($a->argv[1] == 'b2h') {