mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Use stable andExpr() / orExpr() methods
Change-Id: I0010a7c9d273e63acbed78190f0c23283a192ef2
This commit is contained in:
parent
e256fca1ad
commit
3df92fcbe4
|
@ -18,7 +18,6 @@ use UnexpectedValueException;
|
|||
use Wikimedia\Assert\Assert;
|
||||
use Wikimedia\Rdbms\IExpression;
|
||||
use Wikimedia\Rdbms\IReadableDatabase;
|
||||
use Wikimedia\Rdbms\OrExpressionGroup;
|
||||
use Wikimedia\Rdbms\Platform\ISQLPlatform;
|
||||
|
||||
abstract class AbuseFilterView extends ContextSource {
|
||||
|
@ -153,7 +152,7 @@ abstract class AbuseFilterView extends ContextSource {
|
|||
return $db->expr( 'rc_source', '=', $editSources )
|
||||
->orExpr(
|
||||
$db->expr( 'rc_source', '=', RecentChange::SRC_LOG )
|
||||
->andExpr( new OrExpressionGroup( ...$conds ) )
|
||||
->andExpr( $db->orExpr( $conds ) )
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue