From e20793255d4b6a884927c665fb406e4d47266a87 Mon Sep 17 00:00:00 2001 From: Universal Omega <1010delta1010@gmail.com> Date: Thu, 21 Oct 2021 18:48:02 +0000 Subject: [PATCH] checkStorage: pass no parameters to WikiRevision::getContent() This defaults to SlotRecord::MAIN, which is what it should be rather than RevisionRecord::RAW Bug: T294043 Change-Id: Ib035fe4eea778747f47a476c8aa2cfaab44aa7d8 --- maintenance/storage/checkStorage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index 8266c27cae0..1df3731285a 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -22,7 +22,6 @@ */ use MediaWiki\MediaWikiServices; -use MediaWiki\Revision\RevisionRecord; use MediaWiki\Shell\Shell; if ( !defined( 'MEDIAWIKI' ) ) { @@ -514,7 +513,7 @@ class CheckStorage { */ public function importRevision( $revision ) { $id = $revision->getID(); - $content = $revision->getContent( RevisionRecord::RAW ); + $content = $revision->getContent(); $id = $id ?: ''; if ( $content === null ) {