mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:02:54 +00:00
Fix function naming
This commit is contained in:
parent
cdeb4682ef
commit
bedab33e0b
1 changed files with 2 additions and 2 deletions
|
@ -749,7 +749,7 @@ class Transmitter
|
||||||
* @param array $match Matching values for the callback
|
* @param array $match Matching values for the callback
|
||||||
* @return string Replaced mention
|
* @return string Replaced mention
|
||||||
*/
|
*/
|
||||||
private static function MentionCallback($match)
|
private static function mentionCallback($match)
|
||||||
{
|
{
|
||||||
if (empty($match[1])) {
|
if (empty($match[1])) {
|
||||||
return;
|
return;
|
||||||
|
@ -872,7 +872,7 @@ class Transmitter
|
||||||
}
|
}
|
||||||
|
|
||||||
$regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
|
$regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
|
||||||
$body = preg_replace_callback($regexp, ['self', 'MentionCallback'], $body);
|
$body = preg_replace_callback($regexp, ['self', 'mentionCallback'], $body);
|
||||||
|
|
||||||
$data['content'] = BBCode::convert($body, false, 7);
|
$data['content'] = BBCode::convert($body, false, 7);
|
||||||
$data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];
|
$data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];
|
||||||
|
|
Loading…
Reference in a new issue