r23187 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23186‎ | r23187 | r23188 >
Date:23:25, 21 June 2007
Author:aaron
Status:old
Tags:
Comment:
*eol-style: native
Modified paths:
  • /trunk/extensions/Renameuser/RenameUserJob.php (modified) (history)

Diff [purge]

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
2222 + native

Status & tagging log