From: Michael Date: Fri, 19 Oct 2018 13:08:46 +0000 (+0000) Subject: Fix function naming X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bedab33e0b3a1636332c8f07c157a357bf3fd459;p=friendica.git Fix function naming --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 2a930fcc6f..98422f3ad0 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -749,7 +749,7 @@ class Transmitter * @param array $match Matching values for the callback * @return string Replaced mention */ - private static function MentionCallback($match) + private static function mentionCallback($match) { if (empty($match[1])) { return; @@ -872,7 +872,7 @@ class Transmitter } $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['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];