X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FFileContentsHasher.php;h=e390f217c74fd44c2e085c3fc42cfcc24926fe81;hb=44532bdd3b8a56dcc07fc92da7538b9e7f35657b;hp=c74b04de2d8d4257ac405df31b18d1aee1a4ca6a;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/FileContentsHasher.php b/includes/utils/FileContentsHasher.php index c74b04de2d..e390f217c7 100644 --- a/includes/utils/FileContentsHasher.php +++ b/includes/utils/FileContentsHasher.php @@ -27,9 +27,6 @@ class FileContentsHasher { /** @var FileContentsHasher */ private static $instance; - /** - * Constructor. - */ public function __construct() { $this->cache = ObjectCache::getLocalServerInstance( 'hash' ); } @@ -96,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; } @@ -109,7 +106,7 @@ class FileContentsHasher { return $instance->getFileContentsHashInternal( $filePath, $algo ) ?: ''; }, $filePaths ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); $hashes = implode( '', $hashes ); return $hashes ? hash( $algo, $hashes ) : false;