Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | $blockEnd = $start + $BATCH_SIZE - 1; |
23 | 23 | $count = 0; |
24 | 24 | $changed = 0; |
| 25 | + $flags = null; // Assume basic flagging level |
25 | 26 | while( $blockEnd <= $end ) { |
26 | 27 | echo "...doing page_id from $blockStart to $blockEnd\n"; |
27 | 28 | $cond = "page_id BETWEEN $blockStart AND $blockEnd"; |
— | — | @@ -36,11 +37,6 @@ |
37 | 38 | # Should exist, but to be safe... |
38 | 39 | if( !$frev && $rev && FlaggedRevs::isPageReviewable($title) ) { |
39 | 40 | $text = $rev->getText(); |
40 | | - # Assume basic flagging level |
41 | | - $flags = array(); |
42 | | - foreach( FlaggedRevs::getDimensions() as $tag => $minQL ) { |
43 | | - $flags[$tag] = 1; |
44 | | - } |
45 | 41 | $article = new Article( $title ); |
46 | 42 | FlaggedRevs::autoReviewEdit( $article, $user, $text, $rev, $flags, true ); |
47 | 43 | $changed++; |