Skip to content

Commit

Permalink
Fix GlobalRenameUser
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 20, 2024
1 parent 6701a37 commit 49095d9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions includes/SpecialRemovePII.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ public function onSubmit( array $formData ) {
'CentralAuth.CentralAuthDatabaseManager'
);

$session = $this->getContext()->exportSession();
$caAntiSpoofManager = MediaWikiServices::getInstance()->getService(
'CentralAuth.CentralAuthAntiSpoofManager'
);

$globalRenameUser = new \MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameUser(
$this->getUser(),
$oldUser,
Expand All @@ -232,8 +235,8 @@ public function onSubmit( array $formData ) {
new \MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameUserStatus( $newUser->getName() ),
$this->jobQueueGroupFactory,
new \MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameUserDatabaseUpdates( $caDbManager ),
new \MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameUserLogger( $this->getUser() ),
$session
new RemovePIIGlobalRenameUserLogger( $this->getUser() ),
$caAntiSpoofManager
);

$globalRenameUser->rename(
Expand Down

0 comments on commit 49095d9

Please sign in to comment.