X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fuser%2FUser.php;h=a1119fafc4fa632fcbc5b2298cc502839551d3aa;hp=4d16594dd5f9ed1b143bf32da4218b2db22a7cf9;hb=c6d1ceb90a9684fa0da758d88ba1e994fad4cffc;hpb=7f65646f35fca0544e6fc388f884bfedcb9a8948 diff --git a/includes/user/User.php b/includes/user/User.php index 4d16594dd5..a1119fafc4 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -2506,7 +2506,7 @@ class User implements IDBAccessObject { $cache->delete( $key, 1 ); } else { wfGetDB( DB_MASTER )->onTransactionPreCommitOrIdle( - function() use ( $cache, $key ) { + function () use ( $cache, $key ) { $cache->delete( $key ); }, __METHOD__ @@ -3698,7 +3698,7 @@ class User implements IDBAccessObject { } // Try to update the DB post-send and only if needed... - DeferredUpdates::addCallableUpdate( function() use ( $title, $oldid ) { + DeferredUpdates::addCallableUpdate( function () use ( $title, $oldid ) { if ( !$this->getNewtalk() ) { return; // no notifications to clear } @@ -4957,7 +4957,8 @@ class User implements IDBAccessObject { } $title = UserGroupMembership::getGroupPage( $group ); if ( $title ) { - return Linker::link( $title, htmlspecialchars( $text ) ); + return MediaWikiServices::getInstance() + ->getLinkRenderer()->makeLink( $title, $text ); } else { return htmlspecialchars( $text ); }