r13451 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13450‎ | r13451 | r13452 >
Date:05:45, 4 April 2006
Author:brion
Status:old
Tags:
Comment:
Set $wgRequestTime, so database error exits show the script runtime instead of wacky numbers and PHP notices.
Modified paths:
  • /trunk/phase3/maintenance/commandLine.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/commandLine.inc
@@ -5,6 +5,8 @@
66 * @subpackage Maintenance
77 */
88
 9+$wgRequestTime = microtime();
 10+
911 /** */
1012 # Abort if called from a web server
1113 if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {

Status & tagging log