X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=4304bc91a0681368de4bd39896d6efc5a955bf48;hb=66a1e505e3b66ae6dc4884e8b92418ab827cc082;hp=008269785262904c3314d7997f4f4fbc49badde7;hpb=1a0b63659b0bbab0c09e579ef89f2e5eb25fbb3c;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 0082697852..4304bc91a0 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -1,6 +1,6 @@ " . 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)