Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -803,7 +803,7 @@ |
804 | 804 | |
805 | 805 | 'FetchChangesList': When fetching the ChangesList derivative for |
806 | 806 | a particular user |
807 | | -&$user: User the list is being fetched for |
| 807 | +$user: User the list is being fetched for |
808 | 808 | &$skin: Skin object to be used with the list |
809 | 809 | &$list: List object (defaults to NULL, change it to an object |
810 | 810 | instance and return false override the list derivative used) |
Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -47,12 +47,12 @@ |
48 | 48 | * @param $user User to fetch the list class for |
49 | 49 | * @return ChangesList derivative |
50 | 50 | */ |
51 | | - public static function newFromUser( &$user ) { |
| 51 | + public static function newFromUser( $user ) { |
52 | 52 | global $wgRequest; |
53 | 53 | |
54 | 54 | $sk = $user->getSkin(); |
55 | 55 | $list = null; |
56 | | - if( wfRunHooks( 'FetchChangesList', array( &$user, &$sk, &$list ) ) ) { |
| 56 | + if( wfRunHooks( 'FetchChangesList', array( $user, &$sk, &$list ) ) ) { |
57 | 57 | $new = $wgRequest->getBool( 'enhanced', $user->getOption( 'usenewrc' ) ); |
58 | 58 | return $new ? new EnhancedChangesList( $sk ) : new OldChangesList( $sk ); |
59 | 59 | } else { |