jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/337843 )

Change subject: Replace deprecated suppress warning methods
......................................................................


Replace deprecated suppress warning methods

Change-Id: I7b2452940bfa86ca1b8b882164a996ec6ef74f4b
---
M ApiVisualEditorEdit.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  jenkins-bot: Verified
  Jforrester: Looks good to me, approved



diff --git a/ApiVisualEditorEdit.php b/ApiVisualEditorEdit.php
index f1da6a2..b054f4a 100644
--- a/ApiVisualEditorEdit.php
+++ b/ApiVisualEditorEdit.php
@@ -120,9 +120,9 @@
        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' );
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/337843
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7b2452940bfa86ca1b8b882164a996ec6ef74f4b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: WMDE-Fisch <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to