mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-13 17:57:11 +00:00
Replace deprecated wfMsg* functions
Bug: T70750 Change-Id: I4b037f14c7a6fc7592c4d6c90afa3844fc60bf35
This commit is contained in:
parent
a0feee14d7
commit
800b3c4b54
|
@ -519,7 +519,7 @@ class TemplateDataBlobTest extends MediaWikiTestCase {
|
||||||
|
|
||||||
protected static function getStatusText( Status $status ) {
|
protected static function getStatusText( Status $status ) {
|
||||||
$str = $status->getHtml();
|
$str = $status->getHtml();
|
||||||
// Based on wfMsgExt/parseinline
|
// Based on wfMessage()->parse
|
||||||
$m = array();
|
$m = array();
|
||||||
if ( preg_match( '/^<p>(.*)\n?<\/p>\n?$/sU', $str, $m ) ) {
|
if ( preg_match( '/^<p>(.*)\n?<\/p>\n?$/sU', $str, $m ) ) {
|
||||||
// Unescape char references for things like "[, "]" and "|" for
|
// Unescape char references for things like "[, "]" and "|" for
|
||||||
|
|
Loading…
Reference in a new issue