From 5cb3b0467ddc4a308d16f6bfa79bab5ad514f26e Mon Sep 17 00:00:00 2001 From: addshore Date: Mon, 29 Jun 2015 20:21:44 +0200 Subject: [PATCH] Remove use of deprecated utf8ToCodepoint in ApiFormatXml. This usage, in ApiFormatXml, is the final usage in core. Change-Id: Ibd926863d323e6d6d1b2cc5fd5f5f0e1aef8529d --- includes/api/ApiFormatXml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index 4c7d720fb4..4be7d93df4 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -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 ) ); -- 2.20.1