Don't check block errors on account creation, we already explicitly check it earlier...
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 7 Jul 2008 13:12:38 +0000 (13:12 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 7 Jul 2008 13:12:38 +0000 (13:12 +0000)
includes/Title.php

index ed6810c..972d3fc 100644 (file)
@@ -1069,7 +1069,7 @@ class Title {
                        $errors[] = array( 'confirmedittext' );
                }
 
-               if ( $user->isBlockedFrom( $this ) ) {
+               if ( $user->isBlockedFrom( $this ) && $action != 'createaccount' ) {
                        $block = $user->mBlock;
 
                        // This is from OutputPage::blockedPage