X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Ffilebackend%2FMemoryFileBackend.php;h=f0cbf3bbcd419723295058381460f03ed316a2f8;hb=529143e4aa1bf708bb749857c2e03358ee67fe65;hp=3932f345059c4556257c5f161a579ec334489357;hpb=0d6ef1c0b20093e03e95a6b7f303c7a2de5de3af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/filebackend/MemoryFileBackend.php b/includes/libs/filebackend/MemoryFileBackend.php index 3932f34505..f0cbf3bbcd 100644 --- a/includes/libs/filebackend/MemoryFileBackend.php +++ b/includes/libs/filebackend/MemoryFileBackend.php @@ -21,6 +21,8 @@ * @ingroup FileBackend */ +use Wikimedia\AtEase\AtEase; + /** * Simulation of a backend storage in memory. * @@ -70,9 +72,9 @@ class MemoryFileBackend extends FileBackendStore { return $status; } - Wikimedia\suppressWarnings(); + AtEase::suppressWarnings(); $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'] );