From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/Autopromote.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/Autopromote.php') diff --git a/includes/Autopromote.php b/includes/Autopromote.php index 83f3c20b..a2336030 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -166,9 +166,9 @@ class Autopromote { $groups = array_slice( $cond, 1 ); return count( array_intersect( $groups, $user->getGroups() ) ) == count( $groups ); case APCOND_ISIP: - return $cond[1] == wfGetIP(); + return $cond[1] == $user->getRequest()->getIP(); case APCOND_IPINRANGE: - return IP::isInRange( wfGetIP(), $cond[1] ); + return IP::isInRange( $user->getRequest()->getIP(), $cond[1] ); case APCOND_BLOCKED: return $user->isBlocked(); case APCOND_ISBOT: -- cgit v1.2.3-54-g00ecf