X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Futils%2FFileContentsHasher.php;h=e390f217c74fd44c2e085c3fc42cfcc24926fe81;hb=95797de3d623d5a5f48cf82edf502a2296bdc257;hp=c74b04de2d8d4257ac405df31b18d1aee1a4ca6a;hpb=57eaa2bf04ce1b48bd89c10defe4de5b7d31f047;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;