From: Chad Horohoe Date: Mon, 7 Jul 2008 13:12:38 +0000 (+0000) Subject: Don't check block errors on account creation, we already explicitly check it earlier... X-Git-Tag: 1.31.0-rc.0~46660 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=1e6e8f41fe4264c6dc3bc46763f083e3615a8652;p=lhc%2Fweb%2Fwiklou.git Don't check block errors on account creation, we already explicitly check it earlier in UserLogin and checking it here is rather annoying (causes "Block Account Creation" to break). --- diff --git a/includes/Title.php b/includes/Title.php index ed6810c9a0..972d3fc842 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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