From: Daniel Friesen Date: Sun, 3 Apr 2011 11:33:10 +0000 (+0000) Subject: Followup r85229; Drop this unnecessary reference on the user from ChangesList::newFro... X-Git-Tag: 1.31.0-rc.0~31058 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=ed776e618ba1f9829329e70133ef07eeceff8072;p=lhc%2Fweb%2Fwiklou.git Followup r85229; Drop this unnecessary reference on the user from ChangesList::newFromUser. --- diff --git a/docs/hooks.txt b/docs/hooks.txt index dc0d8c2fac..3ab877f98a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -803,7 +803,7 @@ $editToken: The user's edit token. 'FetchChangesList': When fetching the ChangesList derivative for a particular user -&$user: User the list is being fetched for +$user: User the list is being fetched for &$skin: Skin object to be used with the list &$list: List object (defaults to NULL, change it to an object instance and return false override the list derivative used) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index ec592ab83c..76005697a5 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -47,12 +47,12 @@ class ChangesList { * @param $user User to fetch the list class for * @return ChangesList derivative */ - public static function newFromUser( &$user ) { + public static function newFromUser( $user ) { global $wgRequest; $sk = $user->getSkin(); $list = null; - if( wfRunHooks( 'FetchChangesList', array( &$user, &$sk, &$list ) ) ) { + if( wfRunHooks( 'FetchChangesList', array( $user, &$sk, &$list ) ) ) { $new = $wgRequest->getBool( 'enhanced', $user->getOption( 'usenewrc' ) ); return $new ? new EnhancedChangesList( $sk ) : new OldChangesList( $sk ); } else {