X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FrenderDump.php;h=0cde28c58d00641458087d72bf9bb9918cfa73dd;hb=90b3cc8b66d30725cd254f9e2e5098e0a6cb3be6;hp=2ba2b3dce32154ac3e71caf1f5d621a4412e644a;hpb=cb4b29fd9625f9d4db56863bb44811e361f4f478;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/renderDump.php b/maintenance/renderDump.php index 2ba2b3dce3..0cde28c58d 100644 --- a/maintenance/renderDump.php +++ b/maintenance/renderDump.php @@ -28,7 +28,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that takes page text out of an XML dump file @@ -69,9 +69,10 @@ class DumpRenderer extends Maintenance { $importer->doImport(); $delta = microtime( true ) - $this->startTime; - $this->error( "Rendered {$this->count} pages in " . round($delta, 2) . " seconds " ); - if ($delta > 0) - $this->error( round($this->count / $delta, 2) . " pages/sec" ); + $this->error( "Rendered {$this->count} pages in " . round( $delta, 2 ) . " seconds " ); + if ( $delta > 0 ) { + $this->error( round( $this->count / $delta, 2 ) . " pages/sec" ); + } $this->error( "\n" ); } @@ -104,11 +105,10 @@ class DumpRenderer extends Maintenance { $output = $content->getParserOutput( $title, null, $options ); file_put_contents( $filename, - "\n" . - "\n" . + "\n" . + "\n" . "\n" . - "\n" . + "\n" . "" . htmlspecialchars( $display ) . "\n" . "\n" . "\n" . @@ -119,4 +119,4 @@ class DumpRenderer extends Maintenance { } $maintClass = "DumpRenderer"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;