Index: trunk/phase3/includes/User.php |
— | — | @@ -2233,7 +2233,7 @@ |
2234 | 2234 | * @param $group String Name of the group to add |
2235 | 2235 | */ |
2236 | 2236 | function addGroup( $group ) { |
2237 | | - if( wfRunHooks( 'UserAddGroup', array( &$this, &$group ) ) ) { |
| 2237 | + if( wfRunHooks( 'UserAddGroup', array( $this, &$group ) ) ) { |
2238 | 2238 | $dbw = wfGetDB( DB_MASTER ); |
2239 | 2239 | if( $this->getId() ) { |
2240 | 2240 | $dbw->insert( 'user_groups', |
— | — | @@ -2259,7 +2259,7 @@ |
2260 | 2260 | */ |
2261 | 2261 | function removeGroup( $group ) { |
2262 | 2262 | $this->load(); |
2263 | | - if( wfRunHooks( 'UserRemoveGroup', array( &$this, &$group ) ) ) { |
| 2263 | + if( wfRunHooks( 'UserRemoveGroup', array( $this, &$group ) ) ) { |
2264 | 2264 | $dbw = wfGetDB( DB_MASTER ); |
2265 | 2265 | $dbw->delete( 'user_groups', |
2266 | 2266 | array( |