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:
parent
0d675c382b
commit
e20793255d
1 changed files with 1 additions and 2 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue