mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Replace deprecated suppress warning methods
Change-Id: I7b2452940bfa86ca1b8b882164a996ec6ef74f4b
This commit is contained in:
parent
7d95edacde
commit
c82d499d48
|
@ -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' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue