mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 09:43:30 +00:00
Make use of the modern ??= operator in one more place
Change-Id: I57c56547893536cd1ca4de567158eccdfff508f9
This commit is contained in:
parent
7acd730719
commit
f59335d85a
|
@ -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