Skip to content

Commit

Permalink
Renameuser was merged into core as of 1.40
Browse files Browse the repository at this point in the history
  • Loading branch information
jayktaylor committed May 2, 2024
1 parent f901e81 commit 0dedf52
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions includes/SpecialMigrateUserAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
use ExtensionRegistry;
use HTMLForm;
use LogPage;
use MediaWiki\Extension\Renameuser\RenameuserSQL;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MediaWiki\RenameUser\RenameuserSQL;
use MediaWiki\Session\Session;
use MediaWiki\User\UserFactory;
use MediaWiki\User\UserNameUtils;
Expand Down Expand Up @@ -337,19 +337,6 @@ public function showTokenDetails() {
$this->showFinalForm();
return true;
} else {
// Check whether Renameuser is loaded, as we have a dependency on it for users that have
// a conflicting username.
if ( !$this->extensionRegistry->isLoaded( 'Renameuser' ) ) {
$this->logger->critical( 'Renameuser is not loaded. Cannot rename users with fallback names.' );

$this->getOutput()->addHTML(
\Html::errorBox(
$this->msg( 'migrateuseraccount-failed' )->text()
)
);
return true;
}

$rename = new RenameuserSQL(
$user->getName(),
$newUser->getName(),
Expand Down

0 comments on commit 0dedf52

Please sign in to comment.