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
This commit is contained in:
Universal Omega 2021-10-21 18:48:02 +00:00 committed by Reedy
parent 0d675c382b
commit e20793255d

View file

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