r46538 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46537‎ | r46538 | r46539 >
Date:16:26, 29 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Short-circuit block check
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1088,7 +1088,7 @@
10891089 }
10901090
10911091 // Edit blocks should not affect reading. Account creation blocks handled at userlogin.
1092 - if ( $user->isBlockedFrom( $this ) && $action != 'read' && $action != 'createaccount' ) {
 1092+ if ( $action != 'read' && $action != 'createaccount' && $user->isBlockedFrom( $this ) ) {
10931093 $block = $user->mBlock;
10941094
10951095 // This is from OutputPage::blockedPage

Status & tagging log