mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Update references to BBCode methods
- Resolve name conflicts with Util\Network
This commit is contained in:
parent
b4651870db
commit
010cf3b1e8
9 changed files with 56 additions and 54 deletions
|
@ -2753,7 +2753,7 @@ function api_get_entitities(&$text, $bbcode)
|
|||
return [];
|
||||
}
|
||||
|
||||
$bbcode = bb_CleanPictureLinks($bbcode);
|
||||
$bbcode = BBCode::cleanPictureLinks($bbcode);
|
||||
|
||||
// Change pure links in text to bbcode uris
|
||||
$bbcode = preg_replace("/([^\]\='".'"'."]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)/ism", '$1[url=$2]$2[/url]', $bbcode);
|
||||
|
@ -5173,7 +5173,7 @@ function api_clean_plain_items($Text)
|
|||
{
|
||||
$include_entities = strtolower(x($_REQUEST, 'include_entities') ? $_REQUEST['include_entities'] : "false");
|
||||
|
||||
$Text = bb_CleanPictureLinks($Text);
|
||||
$Text = BBCode::cleanPictureLinks($Text);
|
||||
$URLSearchString = "^\[\]";
|
||||
|
||||
$Text = preg_replace("/([!#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$1$3', $Text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue