Fixed incorrect parameter passed to LoginForm::userBlockedMessage()
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 14 Apr 2013 20:43:58 +0000 (22:43 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 14 Apr 2013 20:43:58 +0000 (22:43 +0200)
commit42c8f3f21f157a9f7ea3e3f875eae6d63fd094f1
treeddd26902e5398e26968beb5d4e711b50d0a79967
parenta6b161381667de1ffbfc3298e2b1c6496803b03e
Fixed incorrect parameter passed to LoginForm::userBlockedMessage()

The error is Catchable fatal error: Argument 1 passed to
LoginForm::userBlockedMessage() must be an instance of Block, null given.

The problem is that User::$mBlock is not always the correct block, when
checking that a blocked logged-in user can create an account.

bug: 47138
Change-Id: I43f35cfa342737f05a08a693a86949c14348321f
RELEASE-NOTES-1.22
includes/specials/SpecialUserlogin.php