Remove use of deprecated utf8ToCodepoint in ApiFormatXml.
authoraddshore <addshorewiki@gmail.com>
Mon, 29 Jun 2015 18:21:44 +0000 (20:21 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Mon, 29 Jun 2015 18:37:33 +0000 (18:37 +0000)
This usage, in ApiFormatXml, is the final usage
in core.

Change-Id: Ibd926863d323e6d6d1b2cc5fd5f5f0e1aef8529d

includes/api/ApiFormatXml.php

index 4c7d720..4be7d93 100644 (file)
@@ -267,7 +267,7 @@ class ApiFormatXml extends ApiFormatBase {
                return '_' . preg_replace_callback(
                        "/[^$nc]/uS",
                        function ( $m ) {
-                               return sprintf( '.%X.', utf8ToCodepoint( $m[0] ) );
+                               return sprintf( '.%X.', UtfNormal\Utils::utf8ToCodepoint( $m[0] ) );
                        },
                        str_replace( '.', '.2E.', $name )
                );