Revert r78767. The problem was $wgDBerrorLog being false.
authorPlatonides <platonides@users.mediawiki.org>
Wed, 22 Dec 2010 01:11:22 +0000 (01:11 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 22 Dec 2010 01:11:22 +0000 (01:11 +0000)
maintenance/fuzz-tester.php

index 99ff9e6..124b017 100644 (file)
@@ -2509,8 +2509,8 @@ function dbErrorLogged() {
        // first time running this function
        if ( !isset( $filesize ) ) {
                // create log if it does not exist
-               if ( !file_exists( DB_ERROR_LOG_FILE ) ) {
-                       saveFile( DB_ERROR_LOG_FILE, '' );
+               if ( DB_ERROR_LOG_FILE && !file_exists( DB_ERROR_LOG_FILE ) ) {
+                       saveFile( '', DB_ERROR_LOG_FILE );
                }
                $filesize = filesize( DB_ERROR_LOG_FILE );
                return false;