Fix handling of error messages from the 'SpecialPasswordResetOnSubmit' hook
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 16 Jun 2016 16:03:59 +0000 (12:03 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 16 Jun 2016 16:03:59 +0000 (12:03 -0400)
commitb6487447463de476ad1b8bc0eff3d4972c9d44b8
treea078baf4e058c26b7289959c3bb466b65c0125d7
parent3be057e44547e465a26a1ad45c2e946f6d0c63dc
Fix handling of error messages from the 'SpecialPasswordResetOnSubmit' hook

$error might be an array of key + values, but wfMessage() treats that as
an array of alternative message keys instead so the values are lost.
Message::newFromSpecifier(), on the other hand, does exactly what we
want.

Change-Id: I25765869f6888ac793c2af9caaa9bbdf2224d51a
includes/user/PasswordReset.php