diff options
author | Reedy <reedy@wikimedia.org> | 2022-01-05 01:31:58 +0000 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2022-02-24 12:52:05 +0000 |
commit | 8016d7262f12e88e6ab221aea645f1b0be29bccc (patch) | |
tree | d07952010ba323de8acf17d5e402762a5b025fc3 /thumb.php | |
parent | 0c2961a237f9e9a01c1f25a166433ef87659eb36 (diff) | |
download | mediawikicore-8016d7262f12e88e6ab221aea645f1b0be29bccc.tar.gz mediawikicore-8016d7262f12e88e6ab221aea645f1b0be29bccc.zip |
maintenance: Replace some usages of Wikimedia\(suppress|restore)Warnings()
Change-Id: Id1a2d0dedd3326083b6a9727f1ab68ddd8f65df8
Diffstat (limited to 'thumb.php')
-rw-r--r-- | thumb.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/thumb.php b/thumb.php index 11d6183d133b..4be47f3abecc 100644 --- a/thumb.php +++ b/thumb.php @@ -28,6 +28,7 @@ use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; +use Wikimedia\AtEase\AtEase; define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); // T241340: thumb.php is included by thumb_handler.php which already defined @@ -252,9 +253,9 @@ function wfStreamThumb( array $params ) { // Fix IE brokenness $imsString = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] ); // Calculate time - Wikimedia\suppressWarnings(); + AtEase::suppressWarnings(); $imsUnix = strtotime( $imsString ); - Wikimedia\restoreWarnings(); + AtEase::restoreWarnings(); if ( wfTimestamp( TS_UNIX, $img->getTimestamp() ) <= $imsUnix ) { HttpStatus::header( 304 ); return; |