Replace all remaining wfMessage() with $this->msg()

Authored by thiemowmde on Jan 3 2019, 2:39 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.


Replace all remaining wfMessage() with $this->msg()

Calling wfMessage() means using global scope. More precisely:
wfMessage() "magically" accesses the global $wgUser to find out which
language the message should be in. This makes code using any of these
global wf…() helper functions hard to test.

Bug: T212199
Change-Id: Ib1d36023c2b9cde1daa3b91848ca3f6ff7e6c7bd