Short-circuit block check
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 29 Jan 2009 16:26:35 +0000 (16:26 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 29 Jan 2009 16:26:35 +0000 (16:26 +0000)
includes/Title.php

index fea8588..cfe7197 100644 (file)
@@ -1088,7 +1088,7 @@ class Title {
                }
 
                // Edit blocks should not affect reading. Account creation blocks handled at userlogin.
-               if ( $user->isBlockedFrom( $this ) && $action != 'read' && $action != 'createaccount' ) {
+               if ( $action != 'read' && $action != 'createaccount' && $user->isBlockedFrom( $this ) ) {
                        $block = $user->mBlock;
 
                        // This is from OutputPage::blockedPage