Merge "Add tests for WikiMap and WikiReference"
[lhc/web/wiklou.git] / maintenance / renderDump.php
index eab5fe7..2218a5e 100644 (file)
@@ -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();