[FileBackend] Suppress less warnings in doGetFileContentsMulti().
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 3 Oct 2012 20:34:30 +0000 (13:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 3 Oct 2012 20:34:30 +0000 (13:34 -0700)
Change-Id: I7c03b4204bc2173c73e11ca9091907f17e93d586

includes/filebackend/FileBackendStore.php

index 4271c4a..a29816f 100644 (file)
@@ -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;
        }