X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=6640148a28657b2dd28e1d85bce68e4f3309e725;hb=efbfa0a727a196e63a2b71f0a82f09150c2be354;hp=0ff362218a9f22478700c0857edffbbb1c05714f;hpb=a421c54f7b29bd508db35d4a2566a8afc4428913;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index 0ff362218a..6640148a28 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -43,6 +43,16 @@ class BackupReader extends Maintenance { public $imageBasePath = false; /** @var array|false */ public $nsFilter = false; + /** @var bool|resource */ + public $stderr; + /** @var callable|null */ + protected $importCallback; + /** @var callable|null */ + protected $logItemCallback; + /** @var callable|null */ + protected $uploadCallback; + /** @var int */ + protected $startTime; function __construct() { parent::__construct(); @@ -211,6 +221,7 @@ TEXT } $this->uploadCount++; // $this->report(); + // @phan-suppress-next-line PhanUndeclaredMethod $this->progress( "upload: " . $revision->getFilename() ); if ( !$this->dryRun ) { @@ -315,7 +326,7 @@ TEXT $statusRootPage = $importer->setTargetRootPage( $this->getOption( 'rootpage' ) ); if ( !$statusRootPage->isGood() ) { // Die here so that it doesn't print "Done!" - $this->fatalError( $statusRootPage->getMessage()->text() ); + $this->fatalError( $statusRootPage->getMessage( false, false, 'en' )->text() ); return false; } }