mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-24 00:05:33 +00:00
Use stable andExpr() / orExpr() methods
Change-Id: Iacabf4a896d2c8460d84fa3d0a57aa640794e5c7
This commit is contained in:
parent
adad3699cd
commit
44005c405e
|
@ -8,7 +8,7 @@
|
|||
"descriptionmsg": "nuke-desc",
|
||||
"license-name": "GPL-2.0-or-later",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.42"
|
||||
"MediaWiki": ">= 1.43"
|
||||
},
|
||||
"type": "specialpage",
|
||||
"ExtensionMessagesFiles": {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue