Index: trunk/phase3/maintenance/reassignEdits.php |
— | — | @@ -38,8 +38,8 @@ |
39 | 39 | public function execute() { |
40 | 40 | if( $this->hasArg(0) && $this->hasArg(1) ) { |
41 | 41 | # Set up the users involved |
42 | | - $from =& $this->initialiseUser( $this->getArg(0) ); |
43 | | - $to =& $this->initialiseUser( $this->getArg(1) ); |
| 42 | + $from = $this->initialiseUser( $this->getArg(0) ); |
| 43 | + $to = $this->initialiseUser( $this->getArg(1) ); |
44 | 44 | |
45 | 45 | # If the target doesn't exist, and --force is not set, stop here |
46 | 46 | if( $to->getId() || $this->hasOption('force') ) { |
— | — | @@ -100,9 +100,9 @@ |
101 | 101 | if( $total ) { |
102 | 102 | # Reassign edits |
103 | 103 | $this->output( "\nReassigning current edits..." ); |
104 | | - $res = $dbw->update( 'revision', userSpecification( $to, 'rev_user', 'rev_user_text' ), $this->userConditions( $from, 'rev_user', 'rev_user_text' ), __METHOD__ ); |
| 104 | + $res = $dbw->update( 'revision', $this->userSpecification( $to, 'rev_user', 'rev_user_text' ), $this->userConditions( $from, 'rev_user', 'rev_user_text' ), __METHOD__ ); |
105 | 105 | $this->output( "done.\nReassigning deleted edits..." ); |
106 | | - $res = $dbw->update( 'archive', userSpecification( $to, 'ar_user', 'ar_user_text' ), $this->userConditions( $from, 'ar_user', 'ar_user_text' ), __METHOD__ ); |
| 106 | + $res = $dbw->update( 'archive', $this->userSpecification( $to, 'ar_user', 'ar_user_text' ), $this->userConditions( $from, 'ar_user', 'ar_user_text' ), __METHOD__ ); |
107 | 107 | $this->output( "done.\n" ); |
108 | 108 | # Update recent changes if required |
109 | 109 | if( $rc ) { |