X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=4304bc91a0681368de4bd39896d6efc5a955bf48;hb=66a1e505e3b66ae6dc4884e8b92418ab827cc082;hp=7553cd9f81728e49c913d677b724621f9a83f8ff;hpb=360614d2cf3aceeb763ef1281ad5236878f5d735;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 7553cd9f81..4304bc91a0 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -316,7 +316,7 @@ class OEmbed if ($stopoembed == true) { return preg_replace("/\[embed\](.+?)\[\/embed\]/is", "" . DI::l10n()->t('Embedding disabled') . " : $1", $text); } - return preg_replace_callback("/\[embed\](.+?)\[\/embed\]/is", ['self', 'replaceCallback'], $text); + return preg_replace_callback("/\[embed\](.+?)\[\/embed\]/is", [self::class, 'replaceCallback'], $text); } /** @@ -385,7 +385,7 @@ class OEmbed } /** - * Returns a formmated HTML code from given URL and sets optional title + * Returns a formatted HTML code from given URL and sets optional title * * @param string $url URL to fetch * @param string $title Optional title (default: what comes from OEmbed object)