r45383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45382‎ | r45383 | r45384 >
Date:21:14, 3 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Update script too
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc
@@ -23,7 +23,7 @@
2424 # Go through and clean up missing items, as well as correct fr_quality...
2525 foreach( $res as $row ) {
2626 $user = User::newFromRow( $row );
27 - $p = FlaggedRevs::getUserParams( $user );
 27+ $p = FlaggedRevs::getUserParams( $user->getId() );
2828 $oldp = $p;
2929 # Get edit comments used
3030 $sres = $db->select( 'revision', '1',
@@ -62,7 +62,7 @@
6363 $p['reviewedEdits'] = $db->numRows( $sres );
6464
6565 if( $oldp != $p ) {
66 - FlaggedRevs::saveUserParams( $user, $p );
 66+ FlaggedRevs::saveUserParams( $user->getId(), $p );
6767 $changed++;
6868 }
6969

Status & tagging log