http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90247
Revision: 90247 Author: mah Date: 2011-06-16 23:36:41 +0000 (Thu, 16 Jun 2011) Log Message: ----------- follow up r84134 ?\226?\128?\148 removing passing $this by reference Modified Paths: -------------- trunk/phase3/includes/User.php Modified: trunk/phase3/includes/User.php =================================================================== --- trunk/phase3/includes/User.php 2011-06-16 23:35:23 UTC (rev 90246) +++ trunk/phase3/includes/User.php 2011-06-16 23:36:41 UTC (rev 90247) @@ -2233,7 +2233,7 @@ * @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 @@ */ 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( _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs