This doesn't appear to be working the right way; it's finding that permission is not allowed, but then trying to ignore particular reasons why it might not be allowed.
Correct fix should be to ensure that the correct result is actually obtained from the permission check in the first place!
Note that the error key may have 'autoblocktext' for autoblocks, which would not match this check as written.
* (bug 14687) OutputPage::addStyle() now adds type="text/css" like it should.
* OpenSearch cleanup; Firefox now sends you to the search page for empty
searches instead of the domain root (which may not even be a wiki).
* (bug 14687) OutputPage::addStyle() now adds type="text/css" like it should.
* OpenSearch cleanup; Firefox now sends you to the search page for empty
searches instead of the domain root (which may not even be a wiki).
-* (bug 14698) Blocks without "block account creation" set no longer block
- account creation.
* (bug 3481) Pages moved shortly after creation are shown at their new title
on Special:Newpages.
* (bug 12716) Trying to unprotect a title that isn't protected no longer
* (bug 3481) Pages moved shortly after creation are shown at their new title
on Special:Newpages.
* (bug 12716) Trying to unprotect a title that isn't protected no longer
} elseif ( $wgUser->isBlockedFromCreateAccount() ) {
$this->userBlockedMessage();
return;
} elseif ( $wgUser->isBlockedFromCreateAccount() ) {
$this->userBlockedMessage();
return;
- }
- // Suppress 'blockedtext' error here, we already checked above.
- elseif ( count( $permErrors = $titleObj->getUserPermissionsErrors( 'createaccount', $wgUser, true, array('blockedtext') ) )>0 ) {
+ } elseif ( count( $permErrors = $titleObj->getUserPermissionsErrors( 'createaccount', $wgUser, true ) )>0 ) {
$wgOut->showPermissionsErrorPage( $permErrors, 'createaccount' );
return;
}
$wgOut->showPermissionsErrorPage( $permErrors, 'createaccount' );
return;
}