Merge "Fixed EnqueueJob::newFromLocalJobs docs"
[lhc/web/wiklou.git] / includes / parser / Preprocessor_DOM.php
index 3435881..0351f2a 100644 (file)
@@ -92,7 +92,7 @@ class Preprocessor_DOM implements Preprocessor {
                wfRestoreWarnings();
                if ( !$result ) {
                        // Try running the XML through UtfNormal to get rid of invalid characters
-                       $xml = UtfNormal::cleanUp( $xml );
+                       $xml = UtfNormal\Validator::cleanUp( $xml );
                        // 1 << 19 == XML_PARSE_HUGE, needed so newer versions of libxml2
                        // don't barf when the XML is >256 levels deep
                        $result = $dom->loadXML( $xml, 1 << 19 );
@@ -191,7 +191,7 @@ class Preprocessor_DOM implements Preprocessor {
                wfRestoreWarnings();
                if ( !$result ) {
                        // Try running the XML through UtfNormal to get rid of invalid characters
-                       $xml = UtfNormal::cleanUp( $xml );
+                       $xml = UtfNormal\Validator::cleanUp( $xml );
                        // 1 << 19 == XML_PARSE_HUGE, needed so newer versions of libxml2
                        // don't barf when the XML is >256 levels deep.
                        $result = $dom->loadXML( $xml, 1 << 19 );