diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /includes/media/Exif.php | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'includes/media/Exif.php')
-rw-r--r-- | includes/media/Exif.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/media/Exif.php b/includes/media/Exif.php index 33868689..b4cc43e5 100644 --- a/includes/media/Exif.php +++ b/includes/media/Exif.php @@ -294,9 +294,9 @@ class Exif { $this->debugFile( $this->basename, __FUNCTION__, true ); if ( function_exists( 'exif_read_data' ) ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $data = exif_read_data( $this->file, 0, true ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); } else { throw new MWException( "Internal error: exif_read_data not present. " . "\$wgShowEXIF may be incorrectly set or not checked by an extension." ); @@ -471,17 +471,17 @@ class Exif { break; } if ( $charset ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $val = iconv( $charset, 'UTF-8//IGNORE', $val ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); } else { // if valid utf-8, assume that, otherwise assume windows-1252 $valCopy = $val; UtfNormal\Validator::quickIsNFCVerify( $valCopy ); //validates $valCopy. if ( $valCopy !== $val ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $val = iconv( 'Windows-1252', 'UTF-8//IGNORE', $val ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); } } |