Index: trunk/phase3/includes/SpecialUserrights.php |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | * @param string $reason Reason for group change |
76 | 76 | * |
77 | 77 | */ |
78 | | - function saveUserGroups( $username, $removegroup, $addgroup, $reason ) { |
| 78 | + function saveUserGroups( $username, $removegroup, $addgroup, $reason = '' ) { |
79 | 79 | global $wgOut; |
80 | 80 | $u = User::newFromName($username); |
81 | 81 | |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | wfDebug( 'oldGroups: ' . print_r( $oldGroups, true ) ); |
110 | 110 | wfDebug( 'newGroups: ' . print_r( $newGroups, true ) ); |
111 | 111 | |
112 | | - wfRunHooks( 'UserRights', array( &$u, $addgroup, $removegroup ) ); |
| 112 | + wfRunHooks( 'UserRights', array( &$u, $addgroup, $removegroup ) ); |
113 | 113 | $log = new LogPage( 'rights' ); |
114 | 114 | $log->addEntry( 'rights', Title::makeTitle( NS_USER, $u->getName() ), $reason, array( $this->makeGroupNameList( $oldGroups ), |
115 | 115 | $this->makeGroupNameList( $newGroups ) ) ); |