} else {
print "Checking...\n";
}
- $maxRevId = $dbr->selectField( 'revision', 'MAX(rev_id)', false, __METHOD__ );
+ $maxRevId = $dbr->selectField( 'revision', 'MAX(rev_id)', '', __METHOD__ );
$chunkSize = 1000;
$flagStats = [];
$objectStats = [];
case 'historyblobcurstub':
if ( strlen( $row->header ) == $headerLength ) {
$this->addError( 'unfixable', "Error: overlong stub header", $oldId );
- continue;
+ break;
}
$stubObj = unserialize( $row->header );
if ( !is_object( $stubObj ) ) {
$this->addError( 'restore text', "Error: unable to unserialize stub object", $oldId );
- continue;
+ break;
}
if ( $className == 'historyblobstub' ) {
$concatBlobs[$stubObj->mOldId][] = $oldId;
MediaWikiServices::getInstance()->getMainConfig()
);
$importer->setRevisionCallback( [ $this, 'importRevision' ] );
+ $importer->setNoticeCallback( function ( $msg, $params ) {
+ echo wfMessage( $msg, $params )->text() . "\n";
+ } );
$importer->doImport();
}