Update at-ease calls in extensions

Bug: T187037
Change-Id: Ifbba289cc78eb005fa974cdb941b17335974ec78
This commit is contained in:
Jayprakash12345 2018-02-12 19:20:15 +00:00
parent 727eda9161
commit 936dbda876

View file

@ -121,9 +121,9 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
public static function tryDeflate( $content ) {
if ( substr( $content, 0, 11 ) === 'rawdeflate,' ) {
$deflated = base64_decode( substr( $content, 11 ) );
MediaWiki\suppressWarnings();
Wikimedia\suppressWarnings();
$inflated = gzinflate( $deflated );
MediaWiki\restoreWarnings();
Wikimedia\restoreWarnings();
if ( $deflated === $inflated || $inflated === false ) {
// Static equivalent of $this->dieWithError
throw ApiUsageException::newWithMessage(