$user: User whose groups changed
$added: Groups added
$removed: Groups removed
+$performer: User who performed the change, false if via autopromotion
'UserIsBlockedFrom': Check if a user is blocked from a specific page (for
specific block exemptions).
$this->addGroup( $group );
}
// update groups in external authentication database
- Hooks::run( 'UserGroupsChanged', array( $this, $toPromote, array() ) );
+ Hooks::run( 'UserGroupsChanged', array( $this, $toPromote, array(), false ) );
$wgAuth->updateExternalDBGroups( $this, $toPromote );
$newGroups = array_merge( $oldGroups, $toPromote ); // all groups
$user->invalidateCache();
// update groups in external authentication database
- Hooks::run( 'UserGroupsChanged', array( $user, $add, $remove ) );
+ Hooks::run( 'UserGroupsChanged', array( $user, $add, $remove, $this->getUser() ) );
$wgAuth->updateExternalDBGroups( $user, $add, $remove );
wfDebug( 'oldGroups: ' . print_r( $oldGroups, true ) . "\n" );