Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -299,14 +299,16 @@ |
300 | 300 | if ( is_array( $req ) ) { |
301 | 301 | $criteria = array( '&', // AND |
302 | 302 | array( APCOND_AGE, $req['days']*86400 ), |
303 | | - array( APCOND_EDITCOUNT, $req['edits'] ), |
| 303 | + array( APCOND_EDITCOUNT, $req['edits'], $req['excludeLastDays']*86400 ), |
304 | 304 | array( APCOND_FR_EDITSUMMARYCOUNT, $req['editComments'] ), |
305 | 305 | array( APCOND_FR_UNIQUEPAGECOUNT, $req['uniqueContentPages'] ), |
306 | 306 | array( APCOND_FR_EDITSPACING, $req['spacing'], $req['benchmarks'] ), |
307 | 307 | array( '|', // OR |
308 | | - array( APCOND_FR_CONTENTEDITCOUNT, $req['totalContentEdits'] ), |
309 | | - array( APCOND_FR_CHECKEDEDITCOUNT, $req['totalCheckedEdits'] ) |
310 | | - ) |
| 308 | + array( APCOND_FR_CONTENTEDITCOUNT, |
| 309 | + $req['totalContentEdits'], $req['excludeLastDays']*86400 ), |
| 310 | + array( APCOND_FR_CHECKEDEDITCOUNT, |
| 311 | + $req['totalCheckedEdits'], $req['excludeLastDays']*86400 ) |
| 312 | + ), |
311 | 313 | ); |
312 | 314 | if ( $req['email'] ) { |
313 | 315 | $criteria[] = array( APCOND_EMAILCONFIRMED ); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.config.php |
— | — | @@ -107,6 +107,7 @@ |
108 | 108 | $wgFlaggedRevsAutoconfirm = array( |
109 | 109 | 'days' => 30, # days since registration |
110 | 110 | 'edits' => 50, # total edit count |
| 111 | + 'excludeLastDays' => 2, # exclude the last X days of edits from edit counts |
111 | 112 | 'benchmarks' => 7, # number of "spread out" edits |
112 | 113 | 'spacing' => 3, # number of days between these edits (the "spread") |
113 | 114 | // Either totalContentEdits reqs OR totalCheckedEdits requirements needed |