Remove is_numeric check from Title::checkUserBlock
authorKevin Israel <pleasestand@live.com>
Wed, 3 Apr 2013 21:44:00 +0000 (17:44 -0400)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Apr 2013 02:40:35 +0000 (02:40 +0000)
commit8cc0b601aa2db6db09ac0e4d70847293d75875aa
treeab58116e6d49b79275970d0d9ff175e9193d6734
parente27d3a96e72847a349aaafa979bb4bb1f499f57a
Remove is_numeric check from Title::checkUserBlock

This should allow the usernames of administrators such as "7"
to show correctly on permissions error pages.

I extracted the working code from UserBlockedError::__construct
into a separate method Block::getPermissionsError, called from
both places with context provided as an argument.

Bug: 46768
Change-Id: Ic3fa926a5a4c109faff35fffbccb60fb06ea4a18
RELEASE-NOTES-1.22
includes/Block.php
includes/Exception.php
includes/Title.php