diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /includes/Autopromote.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'includes/Autopromote.php')
-rw-r--r-- | includes/Autopromote.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/Autopromote.php b/includes/Autopromote.php index c8a4c03b..c0adff43 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -1,5 +1,4 @@ <?php - /** * This class checks if user can get extra rights * because of conditions specified in $wgAutopromote @@ -18,9 +17,9 @@ class Autopromote { if( self::recCheckCondition( $cond, $user ) ) $promote[] = $group; } - + wfRunHooks( 'GetAutoPromoteGroups', array( $user, &$promote ) ); - + return $promote; } @@ -116,6 +115,8 @@ class Autopromote { return $cond[1] == wfGetIP(); case APCOND_IPINRANGE: return IP::isInRange( wfGetIP(), $cond[1] ); + case APCOND_BLOCKED: + return $user->isBlocked(); default: $result = null; wfRunHooks( 'AutopromoteCondition', array( $cond[0], array_slice( $cond, 1 ), $user, &$result ) ); |