From 7e8e41ba9229f53f5fd83203fe33cad6ccf1169d Mon Sep 17 00:00:00 2001 From: Thalia Date: Thu, 25 Apr 2019 13:02:12 +0100 Subject: [PATCH] Rename $isIpUser to $isAnon, in line with convention elsewhere Change-Id: I66721f4af5e844c3e18ba35558390563b8424863 --- includes/Block.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Block.php b/includes/Block.php index 37b9ce521e..3f17d843b8 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -2132,17 +2132,17 @@ class Block { * Check if the block should be tracked with a cookie. * * @since 1.33 - * @param bool $isIpUser The user is logged out + * @param bool $isAnon The user is logged out * @return bool The block should be tracked with a cookie */ - public function shouldTrackWithCookie( $isIpUser ) { + public function shouldTrackWithCookie( $isAnon ) { $config = RequestContext::getMain()->getConfig(); switch ( $this->getType() ) { case self::TYPE_IP: case self::TYPE_RANGE: - return $isIpUser && $config->get( 'CookieSetOnIpBlock' ); + return $isAnon && $config->get( 'CookieSetOnIpBlock' ); case self::TYPE_USER: - return !$isIpUser && $config->get( 'CookieSetOnAutoblock' ) && $this->isAutoblocking(); + return !$isAnon && $config->get( 'CookieSetOnAutoblock' ) && $this->isAutoblocking(); default: return false; } -- 2.20.1