jenkins-bot has submitted this change and it was merged.
Change subject: Replace some wfMsg* calls
......................................................................
Replace some wfMsg* calls
Bug: T70750
Change-Id: Ia0d3f5fea12162097a3b9de98b871ed6b9f2b6a8
---
M includes/datavalues/SMW_DataValue.php
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Reedy: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/datavalues/SMW_DataValue.php
b/includes/datavalues/SMW_DataValue.php
index dd641ba..545b98b 100644
--- a/includes/datavalues/SMW_DataValue.php
+++ b/includes/datavalues/SMW_DataValue.php
@@ -323,8 +323,7 @@
}
$args[0] = 'smw_service_' . str_replace( ' ', '_',
$dataItem->getString() ); // messages distinguish ' ' from '_'
- // @todo FIXME: Use wfMessage/Message class here.
- $text = call_user_func_array( 'wfMsgForContent', $args
);
+ $text = wfMessage( $args )->inContentLanguage()->text();
$links = preg_split( "/[\n][\s]?/u", $text );
foreach ( $links as $link ) {
--
To view, visit https://gerrit.wikimedia.org/r/262059
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia0d3f5fea12162097a3b9de98b871ed6b9f2b6a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits