From: Mark A. Hershberger Date: Thu, 16 Jun 2011 23:36:41 +0000 (+0000) Subject: follow up r84134 — removing passing $this by reference X-Git-Tag: 1.31.0-rc.0~29483 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=643c030bcd15fdd83841a2bbc3eeba6e9875f3ab;p=lhc%2Fweb%2Fwiklou.git follow up r84134 — removing passing $this by reference --- diff --git a/includes/User.php b/includes/User.php index 4459184c94..d21693a901 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2233,7 +2233,7 @@ class User { * @param $group String Name of the group to add */ function addGroup( $group ) { - if( wfRunHooks( 'UserAddGroup', array( &$this, &$group ) ) ) { + if( wfRunHooks( 'UserAddGroup', array( $this, &$group ) ) ) { $dbw = wfGetDB( DB_MASTER ); if( $this->getId() ) { $dbw->insert( 'user_groups', @@ -2259,7 +2259,7 @@ class User { */ function removeGroup( $group ) { $this->load(); - if( wfRunHooks( 'UserRemoveGroup', array( &$this, &$group ) ) ) { + if( wfRunHooks( 'UserRemoveGroup', array( $this, &$group ) ) ) { $dbw = wfGetDB( DB_MASTER ); $dbw->delete( 'user_groups', array(