Use MediaWiki\restoreWarnings in deprecated wfRestoreWarnings
authorWMDE-Fisch <christoph.jauera@wikimedia.de>
Mon, 22 Jan 2018 17:53:09 +0000 (18:53 +0100)
committerWMDE-Fisch <christoph.jauera@wikimedia.de>
Mon, 22 Jan 2018 17:53:11 +0000 (18:53 +0100)
This will give devs a better hint on how to replace this.

Change-Id: I2332b6173b7816aef11841725752745e174fa69f

includes/GlobalFunctions.php

index b181628..a06d721 100644 (file)
@@ -2021,7 +2021,7 @@ function wfSuppressWarnings( $end = false ) {
  * Restore error level to previous value
  */
 function wfRestoreWarnings() {
-       MediaWiki\suppressWarnings( true );
+       MediaWiki\restoreWarnings();
 }
 
 /**