Don't check namespace in SpecialWantedtemplates
[lhc/web/wiklou.git] / thumb.php
index 8bc04b9..40f3754 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -231,9 +231,9 @@ function wfStreamThumb( array $params ) {
                // Fix IE brokenness
                $imsString = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] );
                // Calculate time
-               wfSuppressWarnings();
+               MediaWiki\suppressWarnings();
                $imsUnix = strtotime( $imsString );
-               wfRestoreWarnings();
+               MediaWiki\restoreWarnings();
                if ( wfTimestamp( TS_UNIX, $img->getTimestamp() ) <= $imsUnix ) {
                        HttpStatus::header( 304  );
                        return;