Replace deprecated suppress warning methods

Change-Id: I7b2452940bfa86ca1b8b882164a996ec6ef74f4b
This commit is contained in:
WMDE-Fisch 2017-02-15 14:50:02 +01:00
parent 7d95edacde
commit c82d499d48

View file

@ -120,9 +120,9 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
protected function tryDeflate( $content ) {
if ( substr( $content, 0, 11 ) === 'rawdeflate,' ) {
$deflated = base64_decode( substr( $content, 11 ) );
wfSuppressWarnings();
MediaWiki\suppressWarnings();
$inflated = gzinflate( $deflated );
wfRestoreWarnings();
MediaWiki\restoreWarnings();
if ( $deflated === $inflated || $inflated === false ) {
$this->dieWithError( 'apierror-visualeditor-invaliddeflate', 'invaliddeflate' );
}