Move MWCryptHash into libs/
Remove the single wfDebug() call that was making this class MW specific, someone can log the return value of MWCryptHash::hashAlgo() if they'd like to know the specific implementation being used. Change-Id: Ibb7ead7594edab7861631046dd8316daab613401
This commit is contained in:
parent
28f21d6fa2
commit
9300bc2933
2 changed files with 1 additions and 2 deletions
|
|
@ -771,7 +771,7 @@ $wgAutoloadLocalClasses = [
|
|||
'MWCallableUpdate' => __DIR__ . '/includes/deferred/MWCallableUpdate.php',
|
||||
'MWContentSerializationException' => __DIR__ . '/includes/content/ContentHandler.php',
|
||||
'MWCryptHKDF' => __DIR__ . '/includes/utils/MWCryptHKDF.php',
|
||||
'MWCryptHash' => __DIR__ . '/includes/utils/MWCryptHash.php',
|
||||
'MWCryptHash' => __DIR__ . '/includes/libs/MWCryptHash.php',
|
||||
'MWCryptRand' => __DIR__ . '/includes/utils/MWCryptRand.php',
|
||||
'MWDebug' => __DIR__ . '/includes/debug/MWDebug.php',
|
||||
'MWDocGen' => __DIR__ . '/maintenance/mwdocgen.php',
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ class MWCryptHash {
|
|||
foreach ( $preference as $algorithm ) {
|
||||
if ( in_array( $algorithm, $algos ) ) {
|
||||
self::$algo = $algorithm;
|
||||
wfDebug( __METHOD__ . ': Using the ' . self::$algo . " hash algorithm.\n" );
|
||||
|
||||
return self::$algo;
|
||||
}
|
||||
Loading…
Reference in a new issue