Thread:Project:Support desk/After Upgrading to Mediawiki 1.21.1 with custom skin: How to deal with/resolve "Use of wfMsg was deprecated in MediaWiki 1.21" warnings/reply (3)

I think the following untested code will do what you need: