X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=6640148a28657b2dd28e1d85bce68e4f3309e725;hb=df59a5cbabea50191168303c5f0ea3600aab49b4;hp=cda16fe3b33a2dd54d55f1aa994dc703b7f0ac55;hpb=02dc5d8685bf9ceccdbcdba75ed3a4c920da0e80;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index cda16fe3b3..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(); @@ -316,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; } }