dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d415d60
)
Short-circuit block check
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 29 Jan 2009 16:26:35 +0000
(16:26 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 29 Jan 2009 16:26:35 +0000
(16:26 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
fea8588
..
cfe7197
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-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