Don't suppress warnings when attempting file creation for the second time, this masks...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 20 Dec 2011 04:36:27 +0000 (04:36 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 20 Dec 2011 04:36:27 +0000 (04:36 +0000)
includes/filerepo/backend/lockmanager/FSLockManager.php

index 4a5fb29..919906f 100644 (file)
@@ -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