Index: trunk/extensions/Renameuser/RenameUserJob.php |
— | — | @@ -21,7 +21,20 @@ |
22 | 22 | */ |
23 | 23 | public function run() { |
24 | 24 | $dbw = wfGetDB( DB_MASTER ); |
25 | | - extract( $this->params ); |
| 25 | + |
| 26 | + $table = $this->params['table']; |
| 27 | + $column = $this->params['column']; |
| 28 | + $oldname = $this->params['oldname']; |
| 29 | + $userID = isset( $this->params['userID'] ) ? $this->params['userID'] : null; |
| 30 | + $uidColumn = isset( $this->params['uidColumn'] ) ? $this->params['uidColumn'] : null; |
| 31 | + $timestampColumn = isset( $this->params['timestampColumn'] ) ? $this->params['timestampColumn'] : null; |
| 32 | + $minTimestamp = $this->params['minTimestamp']; |
| 33 | + $maxTimestamp = $this->params['maxTimestamp']; |
| 34 | + $uniqueKey = isset( $this->params['keyId'] ) ? $this->params['keyId'] : null; |
| 35 | + $keyId = $this->params['keyId']; |
| 36 | + $newname = $this->params['newname']; |
| 37 | + $count = $this->params['count']; |
| 38 | + |
26 | 39 | # Conditions like "*_user_text = 'x' |
27 | 40 | $conds = array( $column => $oldname ); |
28 | 41 | # If user ID given, add that to condition to avoid rename collisions. |