* (bug 5411) Remove autopatrol preference; users who can mark edits patrolled will...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 21:39:36 +0000 (21:39 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 21:39:36 +0000 (21:39 +0000)
RELEASE-NOTES
includes/Article.php
includes/SpecialPreferences.php
includes/User.php
languages/messages/MessagesEn.php

index e19b27e..5b39a3d 100644 (file)
@@ -345,6 +345,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Don't show "you can view and copy the source of this page" message for
   pages which don't exist
 * (bug 8310) Blank line added to top of 'post' when page is blank
+* (bug 5411) Remove autopatrol preference; users who can mark edits patrolled
+  will now have their edits marked as such regardless
 
 == Languages updated ==
 
index 5356c2a..0d696ce 100644 (file)
@@ -1339,8 +1339,8 @@ class Article {
                                                        $lastRevision, $this->getTimestamp(), $bot, '', $oldsize, $newsize,
                                                        $revisionId );
                                                        
-                                               # Mark as patrolled if the user can do so and has it set in their options
-                                               if( $wgUser->isAllowed( 'patrol' ) && $wgUser->getOption( 'autopatrol' ) ) {
+                                               # Mark as patrolled if the user can do so
+                                               if( $wgUser->isAllowed( 'patrol' ) ) {
                                                        RecentChange::markPatrolled( $rcid );
                                                }
                                        }
@@ -1400,8 +1400,8 @@ class Article {
                        if( !( $flags & EDIT_SUPPRESS_RC ) ) {
                                $rcid = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary, $bot,
                                  '', strlen( $text ), $revisionId );
-                               # Mark as patrolled if the user can and has the option set
-                               if( $wgUser->isAllowed( 'patrol' ) && $wgUser->getOption( 'autopatrol' ) ) {
+                               # Mark as patrolled if the user can
+                               if( $wgUser->isAllowed( 'patrol' ) ) {
                                        RecentChange::markPatrolled( $rcid );
                                }
                        }
index 813afec..05318a1 100644 (file)
@@ -857,11 +857,9 @@ class PreferencesForm {
                                'externaleditor',
                                'externaldiff',
                                $wgLivePreview ? 'uselivepreview' : false,
-                               $wgUser->isAllowed( 'patrol' ) && $wgUseRCPatrol ? 'autopatrol' : false,
                                'forceeditsummary',
                        ) ) . '</fieldset>'
                );
-               $this->mUsedToggles['autopatrol'] = true; # Don't show this up for users who can't; the handler below is dumb and doesn't know it
 
                $wgOut->addHTML( '<fieldset><legend>' . htmlspecialchars(wfMsg('prefs-rc')) . '</legend>' .
                                        wfInputLabel( wfMsg( 'recentchangescount' ),
index 7001ddb..0dacab2 100644 (file)
@@ -65,7 +65,6 @@ class User {
                'externaldiff',
                'showjumplinks',
                'uselivepreview',
-               'autopatrol',
                'forceeditsummary',
                'watchlisthideown',
                'watchlisthidebots',
index ebbb4f7..f0d707a 100644 (file)
@@ -480,7 +480,6 @@ parent class in order maintain consistency across languages.
 'tog-externaldiff' => 'Use external diff by default',
 'tog-showjumplinks' => 'Enable "jump to" accessibility links',
 'tog-uselivepreview' => 'Use live preview (JavaScript) (Experimental)',
-'tog-autopatrol' => 'Mark edits I make as patrolled',
 'tog-forceeditsummary' => 'Prompt me when entering a blank edit summary',
 'tog-watchlisthideown' => 'Hide my edits from the watchlist',
 'tog-watchlisthidebots' => 'Hide bot edits from the watchlist',