Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -397,6 +397,12 @@ |
398 | 398 | 'AutoAuthenticate': called to authenticate users on external/environmental means |
399 | 399 | $user: writes user object to this parameter |
400 | 400 | |
| 401 | +'AutopromoteCondition': check autopromote condition for user. |
| 402 | +$type: condition type |
| 403 | +$args: arguments |
| 404 | +$user: user |
| 405 | +$result: result of checking autopromote condition |
| 406 | + |
401 | 407 | 'BadImage': When checking against the bad image list |
402 | 408 | $name: Image name being checked |
403 | 409 | &$bad: Whether or not the image is "bad" |
Index: trunk/phase3/includes/Autopromote.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | case APCOND_INGROUPS: |
65 | 65 | default: |
66 | 66 | $result = false; |
67 | | - wfRunHooks( 'AutopromoteCondition', array( $cond[0], array_slice( $cond, 1 ), &$result ) ); |
| 67 | + wfRunHooks( 'AutopromoteCondition', array( $cond[0], array_slice( $cond, 1 ), $user, &$result ) ); |
68 | 68 | return $result; |
69 | 69 | } |
70 | 70 | } |