X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FFileContentsHasher.php;h=e390f217c74fd44c2e085c3fc42cfcc24926fe81;hb=74af4f507c297d75c1c62cb82b8eb47d65d85630;hp=afe9c0a0f08e145a7930b21bbd1de36df0ce9954;hpb=5ff347bb044057d3cc560e860c85af26163bc979;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/FileContentsHasher.php b/includes/utils/FileContentsHasher.php index afe9c0a0f0..e390f217c7 100644 --- a/includes/utils/FileContentsHasher.php +++ b/includes/utils/FileContentsHasher.php @@ -93,11 +93,11 @@ class FileContentsHasher { $filePaths = (array)$filePaths; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); if ( count( $filePaths ) === 1 ) { $hash = $instance->getFileContentsHashInternal( $filePaths[0], $algo ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); return $hash; } @@ -106,7 +106,7 @@ class FileContentsHasher { return $instance->getFileContentsHashInternal( $filePath, $algo ) ?: ''; }, $filePaths ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); $hashes = implode( '', $hashes ); return $hashes ? hash( $algo, $hashes ) : false;