r25116 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25115‎ | r25116 | r25117 >
Date:09:38, 24 August 2007
Author:aaron
Status:old
Tags:
Comment:
*Make $wgFlaggedRevsAutoReviewNew, some concerns over auto-sighting new pages
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -88,12 +88,14 @@
8989 $wgFlaggedRevsWatch = true;
9090 # Redirect users out to review changes since stable version on save?
9191 $wgReviewChangesAfterEdit = true;
92 -# Auto-review new pages and edits directly to the stable version by reviewers?
 92+# Auto-review edits directly to the stable version by reviewers?
9393 # Depending on how often templates are edited and by whom, this can possibly
94 -# Allow for vandalism to slip in :/
 94+# allow for vandalism to slip in :/
9595 # Users should preview changes perhaps. This doesn't help much for section
9696 # editing, so they may also want to review the page afterwards.
9797 $wgFlaggedRevsAutoReview = true;
 98+# Auto-review new pages with the minimal level?
 99+$wgFlaggedRevsAutoReviewNew = false;
98100
99101 # How long to cache stable versions? (seconds)
100102 $wgFlaggedRevsExpire = 7 * 24 * 3600;
@@ -912,9 +914,9 @@
913915 * When a new page is made by a reviwer, try to automatically review it.
914916 */
915917 public static function maybeMakeNewPageReviewed( $article, $user, $text, $c, $flags, $a, $b, $flags, $rev ) {
916 - global $wgFlaggedRevsAutoReview, $wgFlaggedRevs;
 918+ global $wgFlaggedRevsAutoReviewNew, $wgFlaggedRevs;
917919
918 - if( !$wgFlaggedRevsAutoReview || !$user->isAllowed( 'review' ) )
 920+ if( !$wgFlaggedRevsAutoReviewNew || !$user->isAllowed( 'review' ) )
919921 return true;
920922 if( !$rev ) {
921923 $wgFlaggedRevs->skipReviewDiff = true; // Don't jump to diff...

Status & tagging log