mirror of
https://github.com/friendica/friendica
synced 2025-05-10 01:04:09 +02:00
Replace deprecated use of "self" in callables
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1383147421
This commit is contained in:
parent
881cb456e2
commit
7e618856ab
10 changed files with 22 additions and 22 deletions
|
@ -1661,7 +1661,7 @@ class Transmitter
|
|||
*
|
||||
* } elseif (($type == 'Article') && empty($data['summary'])) {
|
||||
* $regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
|
||||
* $summary = preg_replace_callback($regexp, ['self', 'mentionAddrCallback'], $body);
|
||||
* $summary = preg_replace_callback($regexp, [self::class, 'mentionAddrCallback'], $body);
|
||||
* $data['summary'] = BBCode::toPlaintext(Plaintext::shorten(self::removePictures($summary), 1000));
|
||||
* }
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue