follow up r84134 — removing passing $this by reference
authorMark A. Hershberger <mah@users.mediawiki.org>
Thu, 16 Jun 2011 23:36:41 +0000 (23:36 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Thu, 16 Jun 2011 23:36:41 +0000 (23:36 +0000)
includes/User.php

index 4459184..d21693a 100644 (file)
@@ -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(