From: Brion Vibber Date: Tue, 4 Apr 2006 05:45:38 +0000 (+0000) Subject: Set $wgRequestTime, so database error exits show the script runtime instead of wacky... X-Git-Tag: 1.6.0~46 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=e3da80a5a2d1c93103d2baa87d1421c7ad3e11be;p=lhc%2Fweb%2Fwiklou.git Set $wgRequestTime, so database error exits show the script runtime instead of wacky numbers and PHP notices. --- diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index f5b28d64ca..a7008eff59 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -5,6 +5,8 @@ * @subpackage Maintenance */ +$wgRequestTime = microtime(); + /** */ # Abort if called from a web server if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {