From: Platonides Date: Wed, 22 Dec 2010 01:11:22 +0000 (+0000) Subject: Revert r78767. The problem was $wgDBerrorLog being false. X-Git-Tag: 1.31.0-rc.0~33203 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=52b9837a603e99f5788c64e1db137fa1c4ab6958;p=lhc%2Fweb%2Fwiklou.git Revert r78767. The problem was $wgDBerrorLog being false. --- diff --git a/maintenance/fuzz-tester.php b/maintenance/fuzz-tester.php index 99ff9e6641..124b017177 100644 --- a/maintenance/fuzz-tester.php +++ b/maintenance/fuzz-tester.php @@ -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;