Mark UserRights hook as deprecated
Bug: T113358 Change-Id: I0b4a319f703c549da42d579063e1eadb2260fa21
This commit is contained in:
parent
06523663df
commit
21206c8fbe
1 changed files with 2 additions and 1 deletions
|
|
@ -274,7 +274,8 @@ class UserrightsPage extends SpecialPage {
|
|||
|
||||
wfDebug( 'oldGroups: ' . print_r( $oldGroups, true ) . "\n" );
|
||||
wfDebug( 'newGroups: ' . print_r( $newGroups, true ) . "\n" );
|
||||
Hooks::run( 'UserRights', array( &$user, $add, $remove ) );
|
||||
// Deprecated in favor of UserGroupsChanged hook
|
||||
Hooks::run( 'UserRights', array( &$user, $add, $remove ), '1.26' );
|
||||
|
||||
if ( $newGroups != $oldGroups ) {
|
||||
$this->addLogEntry( $user, $oldGroups, $newGroups, $reason );
|
||||
|
|
|
|||
Loading…
Reference in a new issue