Use UserIdentity::isRegistered instead of User::isAnon in BlockManager
[lhc/web/wiklou.git] / includes / block / BlockManager.php
index 948ed93..83b59c7 100644 (file)
@@ -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;
                        }