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:
DannyS712 2020-11-23 23:58:27 +00:00
parent 0c22afe3cc
commit 8d1f938dda

View file

@ -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 ) {