From 1312f8a626353f9a2268a6955ac008a2074961f5 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 20 Dec 2011 04:36:27 +0000 Subject: [PATCH] Don't suppress warnings when attempting file creation for the second time, this masks important error messages --- includes/filerepo/backend/lockmanager/FSLockManager.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/filerepo/backend/lockmanager/FSLockManager.php b/includes/filerepo/backend/lockmanager/FSLockManager.php index 4a5fb296dd..919906f5e7 100644 --- a/includes/filerepo/backend/lockmanager/FSLockManager.php +++ b/includes/filerepo/backend/lockmanager/FSLockManager.php @@ -83,9 +83,7 @@ class FSLockManager extends LockManager { wfRestoreWarnings(); if ( !$handle ) { // lock dir missing? wfMkdirParents( $this->lockDir ); - wfSuppressWarnings(); $handle = fopen( $this->getLockPath( $key ), 'a+' ); // try again - wfRestoreWarnings(); } if ( $handle ) { // Either a shared or exclusive lock -- 2.20.1