mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-27 17:50:21 +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,22 +265,13 @@ class SpecialNuke extends SpecialPage {
|
|||
|
||||
$where = [ "(rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')" ];
|
||||
|
||||
if ( class_exists( ActorMigration::class ) ) {
|
||||
if ( $username === '' ) {
|
||||
$actorQuery = ActorMigration::newMigration()->getJoin( 'rc_user' );
|
||||
$what['rc_user_text'] = $actorQuery['fields']['rc_user_text'];
|
||||
} else {
|
||||
$actorQuery = ActorMigration::newMigration()
|
||||
->getWhere( $dbr, 'rc_user', User::newFromName( $username, false ) );
|
||||
$where[] = $actorQuery['conds'];
|
||||
}
|
||||
if ( $username === '' ) {
|
||||
$actorQuery = ActorMigration::newMigration()->getJoin( 'rc_user' );
|
||||
$what['rc_user_text'] = $actorQuery['fields']['rc_user_text'];
|
||||
} else {
|
||||
$actorQuery = [ 'tables' => [], 'joins' => [] ];
|
||||
if ( $username === '' ) {
|
||||
$what[] = 'rc_user_text';
|
||||
} else {
|
||||
$where['rc_user_text'] = $username;
|
||||
}
|
||||
$actorQuery = ActorMigration::newMigration()
|
||||
->getWhere( $dbr, 'rc_user', User::newFromName( $username, false ) );
|
||||
$where[] = $actorQuery['conds'];
|
||||
}
|
||||
|
||||
if ( $namespace !== null ) {
|
||||
|
|
Loading…
Reference in a new issue