mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:10:10 +00:00
rename function
rename function and update calls.
This commit is contained in:
parent
237fc30b4e
commit
3eecd108c5
3 changed files with 4 additions and 4 deletions
|
@ -711,7 +711,7 @@ class HTML
|
|||
*
|
||||
* @param string $s
|
||||
*/
|
||||
public static function htmlToBBVideo($s)
|
||||
public static function toBBVideo($s)
|
||||
{
|
||||
$s = preg_replace(
|
||||
'#<object[^>]+>(.*?)https?://www.youtube.com/((?:v|cp)/[A-Za-z0-9\-_=]+)(.*?)</object>#ism',
|
||||
|
|
|
@ -2502,7 +2502,7 @@ class DFRN
|
|||
$base_url = get_app()->getBaseURL();
|
||||
$item['body'] = HTML::relToAbs($item['body'], $base_url);
|
||||
|
||||
$item['body'] = HTML::htmlToBBVideo($item['body']);
|
||||
$item['body'] = HTML::toBBVideo($item['body']);
|
||||
|
||||
$item['body'] = OEmbed::HTML2BBCode($item['body']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue