wfMessage: use Message::params() to handle all the message parameters
authorZhuyifei1999 <zhuyifei1999@gmail.com>
Tue, 20 Dec 2016 14:05:03 +0000 (14:05 +0000)
committerZhuyifei1999 <zhuyifei1999@gmail.com>
Tue, 20 Dec 2016 19:22:54 +0000 (19:22 +0000)
commitc67539341378a7bc3589f4199627d8e7f2717204
tree93bfc0864003d063fda40f2735e59d7afc630495
parent7b68a58dbb9c0eec8933e6fd08c23efab8a1c0ab
wfMessage: use Message::params() to handle all the message parameters

The old code was similar to Message::params(), but Message::params()
was unable to handle "special" parameters and received an overhaul
in 7f2663f, yet wfMessage remained broken. To avoid duplication,
wfMessage shall call Message::params() to correctly handle these
parameters.

CategoryMembershipChange::getChangeMessageText and its caller has
been updated so as not to take advantage of this bug.

Bug: T153747
Change-Id: I6667acf7e71c9db07fefc9fbb741c160e15823ff
includes/GlobalFunctions.php
includes/changes/CategoryMembershipChange.php
tests/phpunit/includes/MessageTest.php