r38983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38982‎ | r38983 | r38984 >
Date:07:04, 9 August 2008
Author:aaron
Status:old
Tags:
Comment:
dev/null doesn't want to cooperate :)
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php
@@ -67,7 +67,9 @@
6868 if( !$dbCache->get( $key ) && !$dbCache->get( $keySQL ) ) {
6969 $ext = strpos( $_SERVER['SCRIPT_NAME'], 'index.php5' ) === false ? 'php' : 'php5';
7070 $path = wfEscapeShellArg( dirname(__FILE__).'/../maintenance/updateStats.php' );
71 - exec( "$ext $path > /dev/null &" );
 71+ $file = tempnam( wfTempDir(), 'flaggedrevs_stats_update' );
 72+ exec( "$ext $path > $file &" );
 73+ unlink( $file );
7274 }
7375 }
7476

Status & tagging log