Index: trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | # Go through and clean up missing items, as well as correct fr_quality... |
25 | 25 | foreach( $res as $row ) { |
26 | 26 | $user = User::newFromRow( $row ); |
27 | | - $p = FlaggedRevs::getUserParams( $user ); |
| 27 | + $p = FlaggedRevs::getUserParams( $user->getId() ); |
28 | 28 | $oldp = $p; |
29 | 29 | # Get edit comments used |
30 | 30 | $sres = $db->select( 'revision', '1', |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | $p['reviewedEdits'] = $db->numRows( $sres ); |
64 | 64 | |
65 | 65 | if( $oldp != $p ) { |
66 | | - FlaggedRevs::saveUserParams( $user, $p ); |
| 66 | + FlaggedRevs::saveUserParams( $user->getId(), $p ); |
67 | 67 | $changed++; |
68 | 68 | } |
69 | 69 | |