From 54f73622d85b8bd3e42ac375b5ab93d129b9c67b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 3 Oct 2012 13:34:30 -0700 Subject: [PATCH] [FileBackend] Suppress less warnings in doGetFileContentsMulti(). Change-Id: I7c03b4204bc2173c73e11ca9091907f17e93d586 --- includes/filebackend/FileBackendStore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index 4271c4a814..a29816f068 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -667,11 +667,11 @@ abstract class FileBackendStore extends FileBackend { */ protected function doGetFileContentsMulti( array $params ) { $contents = array(); - wfSuppressWarnings(); foreach ( $this->doGetLocalReferenceMulti( $params ) as $path => $fsFile ) { + wfSuppressWarnings(); $contents[$path] = $fsFile ? file_get_contents( $fsFile->getPath() ) : false; + wfRestoreWarnings(); } - wfRestoreWarnings(); return $contents; } -- 2.20.1