X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=6640148a28657b2dd28e1d85bce68e4f3309e725;hb=101493a70783b15656daa0686d404ac1a7a6976b;hp=0ff362218a9f22478700c0857edffbbb1c05714f;hpb=3587a9427d8ecae967caf98a4e0c9095e97b4aa8;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; } }