Revert r36916 for now ("(bug 14698) Make "Block account creation" work as advertised...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Jul 2008 20:10:23 +0000 (20:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Jul 2008 20:10:23 +0000 (20:10 +0000)
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.

RELEASE-NOTES
includes/specials/SpecialUserlogin.php

index 057193b..79ff01a 100644 (file)
@@ -405,8 +405,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (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 
index a3892e8..179ef3f 100644 (file)
@@ -727,9 +727,7 @@ class LoginForm {
                        } 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;
                        }