mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 18:58:42 +00:00
Update at-ease calls in extensions
Bug: T187037 Change-Id: Ifbba289cc78eb005fa974cdb941b17335974ec78
This commit is contained in:
parent
727eda9161
commit
936dbda876
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue