mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Merge "Make use of the modern ??= operator in one more place"
This commit is contained in:
commit
c049828dce
|
@ -675,9 +675,7 @@ class CommentParser {
|
|||
$user = $this->getUsernameFromLink( $node );
|
||||
if ( $user ) {
|
||||
// Accept the first link to the user namespace, then only accept links to that user
|
||||
if ( $sigUsername === null ) {
|
||||
$sigUsername = $user['username'];
|
||||
}
|
||||
$sigUsername ??= $user['username'];
|
||||
if ( $user['username'] === $sigUsername ) {
|
||||
$lastLinkNode = $node;
|
||||
if ( $user['displayName'] ) {
|
||||
|
|
Loading…
Reference in a new issue