X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Ffilebackend%2Ffileop%2FStoreFileOp.php;h=5783a822af41f025e19af720498c465d987af45c;hb=5264862bc1224fbb2eec487155aa0253af1fa777;hp=bba762f0ddd0e8c95eccbe1266968d680a71d402;hpb=1c0d9ba2e8e35c361ca94cdc75e4015542dda3a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/filebackend/fileop/StoreFileOp.php b/includes/libs/filebackend/fileop/StoreFileOp.php index bba762f0dd..5783a822af 100644 --- a/includes/libs/filebackend/fileop/StoreFileOp.php +++ b/includes/libs/filebackend/fileop/StoreFileOp.php @@ -21,6 +21,8 @@ * @ingroup FileBackend */ +use Wikimedia\AtEase\AtEase; + /** * Store a file into the backend from a file on the file system. * Parameters for this operation are outlined in FileBackend::doOperations(). @@ -77,9 +79,9 @@ class StoreFileOp extends FileOp { } protected function getSourceSha1Base36() { - MediaWiki\suppressWarnings(); + AtEase::suppressWarnings(); $hash = sha1_file( $this->params['src'] ); - MediaWiki\restoreWarnings(); + AtEase::restoreWarnings(); if ( $hash !== false ) { $hash = Wikimedia\base_convert( $hash, 16, 36, 31 ); }