Index: trunk/extensions/Renameuser/RenameUserJob.php |
— | — | @@ -1,20 +1,20 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -class RenameUserJob extends Job {
|
5 | | - function __construct($title,$params) {
|
6 | | - parent::__construct('renameUser', $title, $params);
|
7 | | - }
|
8 | | -
|
9 | | - function run() {
|
10 | | - $dbw = wfGetDB( DB_MASTER );
|
11 | | - // Our keyId param will be an array of ids
|
12 | | - $dbw->update( $this->params['table'],
|
13 | | - array( $this->params['column'] => $this->params['newname'] ),
|
14 | | - array( $this->params['column'] => $this->params['oldname'],
|
15 | | - $this->params['uniqueKey'] => $this->params['keyId'] )
|
16 | | - #,array( $dbw->lowPriorityOption() )
|
17 | | - );
|
18 | | - }
|
19 | | -}
|
20 | | -
|
21 | | -?>
|
| 2 | +<?php |
| 3 | + |
| 4 | +class RenameUserJob extends Job { |
| 5 | + function __construct($title,$params) { |
| 6 | + parent::__construct('renameUser', $title, $params); |
| 7 | + } |
| 8 | + |
| 9 | + function run() { |
| 10 | + $dbw = wfGetDB( DB_MASTER ); |
| 11 | + // Our keyId param will be an array of ids |
| 12 | + $dbw->update( $this->params['table'], |
| 13 | + array( $this->params['column'] => $this->params['newname'] ), |
| 14 | + array( $this->params['column'] => $this->params['oldname'], |
| 15 | + $this->params['uniqueKey'] => $this->params['keyId'] ) |
| 16 | + #,array( $dbw->lowPriorityOption() ) |
| 17 | + ); |
| 18 | + } |
| 19 | +} |
| 20 | + |
| 21 | +?> |
Property changes on: trunk/extensions/Renameuser/RenameUserJob.php |
___________________________________________________________________ |
Added: svn:eol-style |
22 | 22 | + native |