Replace deprecated wfMsg() calls

The MediaWiki messages API was refactored in version 1.17, deprecating the old wfMsg* family of functions. This commit changes these calls to the new wfMessage()->text() method.