X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=57e09a71aeef0fd40a1a57b9e178fbb2a531ab24;hb=ec550d4823c261c4a2f4fb153defb6283cfd7b48;hp=0604f4886b62e2a42d318ae9afda2f006f92c8fb;hpb=5f0080715ab1f9e176420c737b4a0511e3cb280b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index 0604f4886b..57e09a71ae 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -143,8 +143,6 @@ TEXT } function processOptions() { - global $IP; - parent::processOptions(); if ( $this->hasOption( 'buffersize' ) ) { @@ -152,7 +150,6 @@ TEXT } if ( $this->hasOption( 'prefetch' ) ) { - require_once "$IP/maintenance/backupPrefetch.inc"; $url = $this->processFileOpt( $this->getOption( 'prefetch' ) ); $this->prefetch = new BaseDump( $url ); } @@ -725,13 +722,13 @@ TEXT } 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; } @@ -777,7 +774,7 @@ TEXT } private function closeSpawn() { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); if ( $this->spawnRead ) { fclose( $this->spawnRead ); } @@ -794,7 +791,7 @@ TEXT pclose( $this->spawnProc ); } $this->spawnProc = false; - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); } private function getTextSpawnedOnce( $id ) { @@ -989,5 +986,5 @@ TEXT } } -$maintClass = 'TextPassDumper'; +$maintClass = TextPassDumper::class; require_once RUN_MAINTENANCE_IF_MAIN;