X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Futils%2FFileContentsHasher.php;h=e390f217c74fd44c2e085c3fc42cfcc24926fe81;hb=b78b8804d076618e967c7b31ec15a1bd9e35d1d0;hp=afe9c0a0f08e145a7930b21bbd1de36df0ce9954;hpb=598a250b71aee0ca14eb8661b139bb23cf8e5f40;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;