dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c01cfb
)
[FileBackend] Suppress less warnings in doGetFileContentsMulti().
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 3 Oct 2012 20:34:30 +0000
(13:34 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 3 Oct 2012 20:34:30 +0000
(13:34 -0700)
Change-Id: I7c03b4204bc2173c73e11ca9091907f17e93d586
includes/filebackend/FileBackendStore.php
patch
|
blob
|
history
diff --git
a/includes/filebackend/FileBackendStore.php
b/includes/filebackend/FileBackendStore.php
index
4271c4a
..
a29816f
100644
(file)
--- 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;
}