From: addshore Date: Mon, 29 Jun 2015 18:21:44 +0000 (+0200) Subject: Remove use of deprecated utf8ToCodepoint in ApiFormatXml. X-Git-Tag: 1.31.0-rc.0~10934^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=5cb3b0467ddc4a308d16f6bfa79bab5ad514f26e;p=lhc%2Fweb%2Fwiklou.git Remove use of deprecated utf8ToCodepoint in ApiFormatXml. This usage, in ApiFormatXml, is the final usage in core. Change-Id: Ibd926863d323e6d6d1b2cc5fd5f5f0e1aef8529d --- 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 ) );