Fix casing of wgDBerrorLogInUtc
authorReedy <reedy@wikimedia.org>
Fri, 13 Jul 2012 18:02:12 +0000 (19:02 +0100)
committerReedy <reedy@wikimedia.org>
Fri, 13 Jul 2012 18:02:12 +0000 (19:02 +0100)
Change-Id: I644ea64b1a40160f3468ec35836ee9aa003c03de

includes/GlobalFunctions.php

index 4326229..f9ab140 100644 (file)
@@ -1053,17 +1053,17 @@ function wfDebugLog( $logGroup, $text, $public = true ) {
  * @param $text String: database error message.
  */
 function wfLogDBError( $text ) {
-       global $wgDBerrorLog, $wgDBerrorLogInUtc;
+       global $wgDBerrorLog, $wgDBerrorLogInUTC;
        if ( $wgDBerrorLog ) {
                $host = wfHostname();
                $wiki = wfWikiID();
 
-               if( $wgDBerrorLogInUtc ) {
+               if( $wgDBerrorLogInUTC ) {
                        $wikiTimezone = date_default_timezone_get();
                        date_default_timezone_set( 'UTC' );
                }
                $date = date( 'D M j G:i:s T Y' );
-               if( $wgDBerrorLogInUtc ) {
+               if( $wgDBerrorLogInUTC ) {
                        // Restore timezone
                        date_default_timezone_set( $wikiTimezone );
                }