Skip to content

Commit

Permalink
Merge pull request #64 from miraheze/paladox-patch-1
Browse files Browse the repository at this point in the history
Cast Title to new/old title variables in onPageMoveComplete
  • Loading branch information
paladox authored Oct 11, 2024
2 parents e989649 + e555cf4 commit 8da2d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/GlobalNewFilesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function onPageMoveComplete( $old, $new, $userIdentity, $pageid, $

if ( $oldTitle->inNamespace( NS_FILE ) ) {
MediaWikiServices::getInstance()->getJobQueueGroup()->push(
new GlobalNewFilesMoveJob( [ 'oldtitle' => $oldTitle, 'newtitle' => $newTitle ] )
new GlobalNewFilesMoveJob( [ 'oldtitle' => ( Title )$oldTitle, 'newtitle' => ( Title )$newTitle ] )
);
}
}
Expand Down

0 comments on commit 8da2d01

Please sign in to comment.