Index: trunk/phase3/includes/HistoryBlob.php |
— | — | @@ -516,7 +516,7 @@ |
517 | 517 | $header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) ); |
518 | 518 | |
519 | 519 | # Check the checksum if mhash is available |
520 | | - if ( function_exists( 'mhash' ) ) { |
| 520 | + if ( extension_loaded( 'mhash' ) ) { |
521 | 521 | $ofp = mhash( MHASH_ADLER32, $base ); |
522 | 522 | if ( $ofp !== substr( $diff, 0, 4 ) ) { |
523 | 523 | wfDebug( __METHOD__. ": incorrect base checksum\n" ); |