Merge "Add option to expose original sha1 in thumb url"
[lhc/web/wiklou.git] / maintenance / storage / fixBug20757.php
index d2fe3b4..dd4cd54 100644 (file)
@@ -312,9 +312,9 @@ class FixBug20757 extends Maintenance {
                $text = $secondaryRow->old_text;
                if ( in_array( 'external', $flags ) ) {
                        $url = $text;
-                       wfSuppressWarnings();
+                       MediaWiki\suppressWarnings();
                        list( /* $proto */, $path ) = explode( '://', $url, 2 );
-                       wfRestoreWarnings();
+                       MediaWiki\restoreWarnings();
 
                        if ( $path == "" ) {
                                return false;