dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Recognize exif values for Apple iOS photo modes"
[lhc/web/wiklou.git]
/
includes
/
libs
/
filebackend
/
MemoryFileBackend.php
diff --git
a/includes/libs/filebackend/MemoryFileBackend.php
b/includes/libs/filebackend/MemoryFileBackend.php
index
3932f34
..
f0cbf3b
100644
(file)
--- a/
includes/libs/filebackend/MemoryFileBackend.php
+++ b/
includes/libs/filebackend/MemoryFileBackend.php
@@
-21,6
+21,8
@@
* @ingroup FileBackend
*/
* @ingroup FileBackend
*/
+use Wikimedia\AtEase\AtEase;
+
/**
* Simulation of a backend storage in memory.
*
/**
* Simulation of a backend storage in memory.
*
@@
-70,9
+72,9
@@
class MemoryFileBackend extends FileBackendStore {
return $status;
}
return $status;
}
-
Wikimedia\
suppressWarnings();
+
AtEase::
suppressWarnings();
$data = file_get_contents( $params['src'] );
$data = file_get_contents( $params['src'] );
-
Wikimedia\
restoreWarnings();
+
AtEase::
restoreWarnings();
if ( $data === false ) { // source doesn't exist?
$status->fatal( 'backend-fail-store', $params['src'], $params['dst'] );
if ( $data === false ) { // source doesn't exist?
$status->fatal( 'backend-fail-store', $params['src'], $params['dst'] );