// Fix IE brokenness
$imsString = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] );
// Calculate time
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$imsUnix = strtotime( $imsString );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( wfTimestamp( TS_UNIX, $img->getTimestamp() ) <= $imsUnix ) {
HttpStatus::header( 304 );
return;