mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-28 02:00:12 +00:00
Remove checks for whether ActorMigration class exists
Exists since 1.31, extension requires 1.35+ If it is ever removed, using the current handling from before it was added will break things Change-Id: Iee13649a4e3fb59195a60d178473d6e970680a45
This commit is contained in:
parent
0c22afe3cc
commit
8d1f938dda
|
@ -265,7 +265,6 @@ class SpecialNuke extends SpecialPage {
|
||||||
|
|
||||||
$where = [ "(rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')" ];
|
$where = [ "(rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')" ];
|
||||||
|
|
||||||
if ( class_exists( ActorMigration::class ) ) {
|
|
||||||
if ( $username === '' ) {
|
if ( $username === '' ) {
|
||||||
$actorQuery = ActorMigration::newMigration()->getJoin( 'rc_user' );
|
$actorQuery = ActorMigration::newMigration()->getJoin( 'rc_user' );
|
||||||
$what['rc_user_text'] = $actorQuery['fields']['rc_user_text'];
|
$what['rc_user_text'] = $actorQuery['fields']['rc_user_text'];
|
||||||
|
@ -274,14 +273,6 @@ class SpecialNuke extends SpecialPage {
|
||||||
->getWhere( $dbr, 'rc_user', User::newFromName( $username, false ) );
|
->getWhere( $dbr, 'rc_user', User::newFromName( $username, false ) );
|
||||||
$where[] = $actorQuery['conds'];
|
$where[] = $actorQuery['conds'];
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$actorQuery = [ 'tables' => [], 'joins' => [] ];
|
|
||||||
if ( $username === '' ) {
|
|
||||||
$what[] = 'rc_user_text';
|
|
||||||
} else {
|
|
||||||
$where['rc_user_text'] = $username;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $namespace !== null ) {
|
if ( $namespace !== null ) {
|
||||||
$where['rc_namespace'] = $namespace;
|
$where['rc_namespace'] = $namespace;
|
||||||
|
|
Loading…
Reference in a new issue