dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use UserIdentity::isRegistered instead of User::isAnon in BlockManager
[lhc/web/wiklou.git]
/
includes
/
block
/
BlockManager.php
diff --git
a/includes/block/BlockManager.php
b/includes/block/BlockManager.php
index
948ed93
..
83b59c7
100644
(file)
--- a/
includes/block/BlockManager.php
+++ b/
includes/block/BlockManager.php
@@
-257,7
+257,7
@@
class BlockManager {
$block = DatabaseBlock::newFromID( $blockCookieId );
if (
$block instanceof DatabaseBlock &&
- $this->shouldApplyCookieBlock( $block,
$user->isAnon
() )
+ $this->shouldApplyCookieBlock( $block,
!$user->isRegistered
() )
) {
return $block;
}