X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FrenderDump.php;h=2218a5e7a3e247ed6836e67ad69dae0b807c67a3;hb=e069b794581b32c8d42999f4c09d453578ca8541;hp=eab5fe7569671a121aba7d4ca84070e292eb748b;hpb=853e86af366cfe1c8f1c421807f1cc3bcd64a0fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/renderDump.php b/maintenance/renderDump.php index eab5fe7569..2218a5e7a3 100644 --- a/maintenance/renderDump.php +++ b/maintenance/renderDump.php @@ -61,7 +61,7 @@ class DumpRenderer extends Maintenance { } $source = new ImportStreamSource( $this->getStdin() ); - $importer = new WikiImporter( $source ); + $importer = new WikiImporter( $source, $this->getConfig() ); $importer->setRevisionCallback( array( &$this, 'handleRevision' ) ); @@ -78,12 +78,13 @@ class DumpRenderer extends Maintenance { /** * Callback function for each revision, turn into HTML and save - * @param $rev Revision + * @param Revision $rev */ public function handleRevision( $rev ) { $title = $rev->getTitle(); if ( !$title ) { $this->error( "Got bogus revision with null title!" ); + return; } $display = $title->getPrefixedText();