X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2FFileOp.php;h=5d4e8e11c2c8cd9020df69b0fbc55113c183bd52;hb=a7056e3c695c2fdf304fd5c8cf7a92baacc8836c;hp=66d879433a7738afaadc1eafbaec909da82dadbf;hpb=9f3dd6ceb2193056eea1b334bfca67d546594df1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/FileOp.php b/includes/filebackend/FileOp.php index 66d879433a..5d4e8e11c2 100644 --- a/includes/filebackend/FileOp.php +++ b/includes/filebackend/FileOp.php @@ -577,9 +577,9 @@ class StoreFileOp extends FileOp { } protected function getSourceSha1Base36() { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $hash = sha1_file( $this->params['src'] ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $hash !== false ) { $hash = wfBaseConvert( $hash, 16, 36, 31 ); }