From: Kunal Mehta Date: Tue, 22 Sep 2015 18:29:34 +0000 (-0700) Subject: Mark UserRights hook as deprecated X-Git-Tag: 1.31.0-rc.0~9908 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=21206c8fbe90cbc16ea75863783caedb26bd6eb1;p=lhc%2Fweb%2Fwiklou.git Mark UserRights hook as deprecated Bug: T113358 Change-Id: I0b4a319f703c549da42d579063e1eadb2260fa21 --- diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index e91c0bde18..1ed392f0c7 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -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 );