r103443 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103442‎ | r103443 | r103444 >
Date:05:10, 17 November 2011
Author:aaron
Status:ok
Tags:
Comment:
Use output() function instead of print()
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/updateQueryCache.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/maintenance/updateStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/updateQueryCache.php
@@ -18,14 +18,14 @@
1919 }
2020
2121 public function execute() {
22 - print sprintf( '%-30s ', 'UnreviewedPages' );
 22+ $this->output( sprintf( '%-30s ', 'UnreviewedPages' ) );
2323
2424 $time1 = microtime( true );
2525 UnreviewedPages::updateQueryCache();
2626 $time2 = microtime( true );
2727
2828 $ellapsed = ( $time2 - $time1 );
29 - print sprintf( "completed in %.2fs\n", $ellapsed );
 29+ $this->output( sprintf( "completed in %.2fs\n", $ellapsed ) );
3030 }
3131 }
3232
Index: trunk/extensions/FlaggedRevs/maintenance/updateStats.php
@@ -18,14 +18,14 @@
1919 }
2020
2121 public function execute() {
22 - print sprintf( '%-30s ', 'ValidationStatistics' );
 22+ $this->output( sprintf( '%-30s ', 'ValidationStatistics' ) );
2323
2424 $time1 = microtime( true );
2525 FlaggedRevsStats::updateCache();
2626 $time2 = microtime( true );
2727
2828 $ellapsed = ( $time2 - $time1 );
29 - print sprintf( "completed in %.2fs\n", $ellapsed );
 29+ $this->output( sprintf( "completed in %.2fs\n", $ellapsed ) );
3030 }
3131 }
3232

Status & tagging log