dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge changes I5d11a642,I4ed191bd
[lhc/web/wiklou.git]
/
maintenance
/
fixUserRegistration.php
diff --git
a/maintenance/fixUserRegistration.php
b/maintenance/fixUserRegistration.php
index
524bf20
..
878593c
100644
(file)
--- a/
maintenance/fixUserRegistration.php
+++ b/
maintenance/fixUserRegistration.php
@@
-22,7
+22,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once
( __DIR__ . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script that fixes the user_registration field.
/**
* Maintenance script that fixes the user_registration field.
@@
-44,10
+44,20
@@
class FixUserRegistration extends Maintenance {
foreach ( $res as $row ) {
$id = $row->user_id;
// Get first edit time
foreach ( $res as $row ) {
$id = $row->user_id;
// Get first edit time
- $timestamp = $dbr->selectField( 'revision', 'MIN(rev_timestamp)', array( 'rev_user' => $id ), __METHOD__ );
+ $timestamp = $dbr->selectField(
+ 'revision',
+ 'MIN(rev_timestamp)',
+ array( 'rev_user' => $id ),
+ __METHOD__
+ );
// Update
if ( !empty( $timestamp ) ) {
// Update
if ( !empty( $timestamp ) ) {
- $dbw->update( 'user', array( 'user_registration' => $timestamp ), array( 'user_id' => $id ), __METHOD__ );
+ $dbw->update(
+ 'user',
+ array( 'user_registration' => $timestamp ),
+ array( 'user_id' => $id ),
+ __METHOD__
+ );
$this->output( "$id $timestamp\n" );
} else {
$this->output( "$id NULL\n" );
$this->output( "$id $timestamp\n" );
} else {
$this->output( "$id NULL\n" );