Switch some HTMLForms in special pages to OOUI
[lhc/web/wiklou.git] / includes / parser / Preprocessor_DOM.php
index ff34d9b..718ca35 100644 (file)
@@ -87,9 +87,9 @@ class Preprocessor_DOM implements Preprocessor {
                $xml .= "</list>";
 
                $dom = new DOMDocument();
-               wfSuppressWarnings();
+               MediaWiki\suppressWarnings();
                $result = $dom->loadXML( $xml );
-               wfRestoreWarnings();
+               MediaWiki\restoreWarnings();
                if ( !$result ) {
                        // Try running the XML through UtfNormal to get rid of invalid characters
                        $xml = UtfNormal\Validator::cleanUp( $xml );
@@ -154,7 +154,6 @@ class Preprocessor_DOM implements Preprocessor {
                $cacheable = ( $wgPreprocessorCacheThreshold !== false
                        && strlen( $text ) > $wgPreprocessorCacheThreshold );
                if ( $cacheable ) {
-
                        $cacheKey = wfMemcKey( 'preprocess-xml', md5( $text ), $flags );
                        $cacheValue = $wgMemc->get( $cacheKey );
                        if ( $cacheValue ) {
@@ -186,9 +185,9 @@ class Preprocessor_DOM implements Preprocessor {
                }
 
                $dom = new DOMDocument;
-               wfSuppressWarnings();
+               MediaWiki\suppressWarnings();
                $result = $dom->loadXML( $xml );
-               wfRestoreWarnings();
+               MediaWiki\restoreWarnings();
                if ( !$result ) {
                        // Try running the XML through UtfNormal to get rid of invalid characters
                        $xml = UtfNormal\Validator::cleanUp( $xml );