Use stable andExpr() / orExpr() methods

Change-Id: Iacabf4a896d2c8460d84fa3d0a57aa640794e5c7
This commit is contained in:
Bartosz Dziewoński 2024-07-11 18:36:16 +02:00
parent adad3699cd
commit 44005c405e
2 changed files with 2 additions and 3 deletions

View file

@ -8,7 +8,7 @@
"descriptionmsg": "nuke-desc",
"license-name": "GPL-2.0-or-later",
"requires": {
"MediaWiki": ">= 1.42"
"MediaWiki": ">= 1.43"
},
"type": "specialpage",
"ExtensionMessagesFiles": {

View file

@ -29,7 +29,6 @@ use Wikimedia\Rdbms\IConnectionProvider;
use Wikimedia\Rdbms\IExpression;
use Wikimedia\Rdbms\LikeMatch;
use Wikimedia\Rdbms\LikeValue;
use Wikimedia\Rdbms\OrExpressionGroup;
use Wikimedia\Rdbms\SelectQueryBuilder;
use Xml;
@ -437,7 +436,7 @@ class SpecialNuke extends SpecialPage {
'page_namespace', '=', $nonOverriddenNamespaces
);
}
$queryBuilder->andWhere( new OrExpressionGroup( ...$orConditions ) );
$queryBuilder->andWhere( $dbr->orExpr( $orConditions ) );
$addedWhere = true;
} else {
// No overridden namespaces; just convert all titles.