mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +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 );
|
$user = $this->getUsernameFromLink( $node );
|
||||||
if ( $user ) {
|
if ( $user ) {
|
||||||
// Accept the first link to the user namespace, then only accept links to that 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 ) {
|
if ( $user['username'] === $sigUsername ) {
|
||||||
$lastLinkNode = $node;
|
$lastLinkNode = $node;
|
||||||
if ( $user['displayName'] ) {
|
if ( $user['displayName'] ) {
|
||||||
|
|
Loading…
Reference in a new issue