X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpIterator.php;h=254f36804241365c5c0f3056d5106daa1f20d30f;hb=01e43982ae4b9a61ddfdbe92349eb309f1aaecdb;hp=9f983c1a04a5f88299ab62ea7f3bdedbd833c7fc;hpb=9de4779e206628d8c7c9ae76785bfe825b5267d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpIterator.php b/maintenance/dumpIterator.php index 9f983c1a04..254f368042 100644 --- a/maintenance/dumpIterator.php +++ b/maintenance/dumpIterator.php @@ -48,7 +48,7 @@ abstract class DumpIterator extends Maintenance { public function execute() { if ( !( $this->hasOption( 'file' ) ^ $this->hasOption( 'dump' ) ) ) { - $this->error( "You must provide a file or dump", true ); + $this->fatalError( "You must provide a file or dump" ); } $this->checkOptions(); @@ -70,8 +70,8 @@ abstract class DumpIterator extends Maintenance { if ( $this->getOption( 'dump' ) == '-' ) { $source = new ImportStreamSource( $this->getStdin() ); } else { - $this->error( "Sorry, I don't support dump filenames yet. " - . "Use - and provide it on stdin on the meantime.", true ); + $this->fatalError( "Sorry, I don't support dump filenames yet. " + . "Use - and provide it on stdin on the meantime." ); } $importer = new WikiImporter( $source, $this->getConfig() ); @@ -117,7 +117,7 @@ abstract class DumpIterator extends Maintenance { /** * Callback function for each revision, child classes should override * processRevision instead. - * @param Database $rev + * @param WikiRevision $rev */ public function handleRevision( $rev ) { $title = $rev->getTitle();