*/
require_once __DIR__ . '/backup.inc';
+require_once __DIR__ . '/7zip.inc';
require_once __DIR__ . '/../includes/export/WikiExporter.php';
use Wikimedia\Rdbms\IMaintainableDatabase;
}
function processOptions() {
- global $IP;
-
parent::processOptions();
if ( $this->hasOption( 'buffersize' ) ) {
}
if ( $this->hasOption( 'prefetch' ) ) {
- require_once "$IP/maintenance/backupPrefetch.inc";
$url = $this->processFileOpt( $this->getOption( 'prefetch' ) );
$this->prefetch = new BaseDump( $url );
}
}
private function getTextSpawned( $id ) {
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
if ( !$this->spawnProc ) {
// First time?
$this->openSpawn();
}
$text = $this->getTextSpawnedOnce( $id );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
return $text;
}
}
private function closeSpawn() {
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
if ( $this->spawnRead ) {
fclose( $this->spawnRead );
}
pclose( $this->spawnProc );
}
$this->spawnProc = false;
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
}
private function getTextSpawnedOnce( $id ) {
}
}
-$maintClass = 'TextPassDumper';
+$maintClass = TextPassDumper::class;
require_once RUN_MAINTENANCE_IF_MAIN;