r35846 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35845‎ | r35846 | r35847 >
Date:06:04, 4 June 2008
Author:werdna
Status:old
Tags:
Comment:
Add GetAutoPromoteGroups hook, which was in my working copy but not committed yet (core change for TorBlock extension)
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/Autopromote.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -618,6 +618,10 @@
619619 $user: user who performed the undeletion
620620 $reason: reason
621621
 622+'GetAutoPromoteGroups': When determining which autopromote groups a user is entitled to be in.
 623+&$user: user to promote.
 624+&$promote: groups that will be added.
 625+
622626 'GetBlockedStatus': after loading blocking status of an user from the database
623627 $user: user (object) being checked
624628
Index: trunk/phase3/includes/Autopromote.php
@@ -18,6 +18,9 @@
1919 if( self::recCheckCondition( $cond, $user ) )
2020 $promote[] = $group;
2121 }
 22+
 23+ wfRunHooks( 'GetAutoPromoteGroups', array($user, &$promote) );
 24+
2225 return $promote;
2326 }
2427

Status & tagging log