Fixup a couple more undefined variables
[lhc/web/wiklou.git] / maintenance / generateSitemap.php
index f68b3aa..d583424 100644 (file)
@@ -271,7 +271,7 @@ class GenerateSitemap extends Maintenance {
                        $i = $smcount = 0;
 
                        $fns = $wgContLang->getFormattedNsText( $namespace );
-                       $this->output( "$namespace ($fns)" );
+                       $this->output( "$namespace ($fns)\n" );
                        foreach ( $res as $row ) {
                                if ( $i++ === 0 || $i === $this->url_limit + 1 || $length + $this->limit[1] + $this->limit[2] > $this->size_limit ) {
                                        if ( $this->file !== false ) {
@@ -453,4 +453,4 @@ class GenerateSitemap extends Maintenance {
 }
 
 $maintClass = "GenerateSitemap";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );