Index: trunk/extensions/FlaggedRevs/maintenance/flagToSemiProtect.php |
— | — | @@ -119,7 +119,6 @@ |
120 | 120 | $article = new WikiPage( $title ); |
121 | 121 | $ok = $article->updateRestrictions( $limit, $reason, $cascade, $expiry, $user ); |
122 | 122 | if ( $ok ) { |
123 | | - #echo $title->getPrefixedText() . "\n\t[" . implode( ', ', $desc ) . "]\n"; |
124 | 123 | $count++; |
125 | 124 | } else { |
126 | 125 | $this->output( "Could not protect: " . $title->getPrefixedText() . "\n" ); |
Index: trunk/extensions/FlaggedRevs/maintenance/pruneRevData.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | } |
45 | 45 | $end = $db->selectField( 'flaggedpages', 'MAX(fp_page_id)', false, __METHOD__ ); |
46 | 46 | if ( is_null( $start ) || is_null( $end ) ) { |
47 | | - echo "...flaggedpages table seems to be empty.\n"; |
| 47 | + $this->output( "...flaggedpages table seems to be empty.\n" ); |
48 | 48 | return; |
49 | 49 | } |
50 | 50 | $end += $this->mBatchSize - 1; # Do remaining chunk |
Index: trunk/extensions/FlaggedRevs/maintenance/updateTracking.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | $this->update_flaggedimages( $startRev ); |
40 | 40 | break; |
41 | 41 | default: |
42 | | - echo "Invalidate operation specified.\n"; |
| 42 | + $this->error( "Invalidate operation specified.\n", true ); |
43 | 43 | } |
44 | 44 | } else { |
45 | 45 | $this->update_flaggedrevs( $startRev ); |