X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FrenderDump.php;h=0cde28c58d00641458087d72bf9bb9918cfa73dd;hb=90b3cc8b66d30725cd254f9e2e5098e0a6cb3be6;hp=3938915c7be61adf937f5c0a26020d7ac3f03ad5;hpb=4fe59cd7c2d24ccee9a227d945f5a0791db2fb42;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/renderDump.php b/maintenance/renderDump.php index 3938915c7b..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,9 @@ class DumpRenderer extends Maintenance { $importer->doImport(); $delta = microtime( true ) - $this->startTime; - $this->error( "Rendered {$this->count} pages in " . round($delta, 2) . " seconds " ); + $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( round( $this->count / $delta, 2 ) . " pages/sec" ); } $this->error( "\n" ); } @@ -105,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" . @@ -120,4 +119,4 @@ class DumpRenderer extends Maintenance { } $maintClass = "DumpRenderer"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;