wfRunHooks( 'UserToggles', array( &$extraToggles ) );
if( $wgUseRCPatrol ) {
$extraToggles[] = 'hidepatrolled';
+ $extraToggles[] = 'newpageshidepatrolled';
$extraToggles[] = 'watchlisthidepatrolled';
}
return array_merge( self::$mToggles, $extraToggles, $wgContLang->getExtraUserToggles() );
$opts = new FormOptions();
$this->opts = $opts; // bind
$opts->add( 'hideliu', false );
- $opts->add( 'hidepatrolled', false );
+ $opts->add( 'hidepatrolled', $wgUser->getBoolOption( 'newpageshidepatrolled' ) );
$opts->add( 'hidebots', false );
$opts->add( 'hideredirs', true );
$opts->add( 'limit', (int)$wgUser->getOption( 'rclimit' ) );
);
$toggles[] = 'hideminor';
- if( $wgUseRCPatrol )
+ if( $wgUseRCPatrol ) {
$toggles[] = 'hidepatrolled';
- if( $wgRCShowWatchingUsers )
- $toggles[] = 'shownumberswatching';
+ $toggles[] = 'newpageshidepatrolled';
+ }
+ if( $wgRCShowWatchingUsers ) $toggles[] = 'shownumberswatching';
$toggles[] = 'usenewrc';
$wgOut->addHTML(
# Watchlist
$watchlistToggles = array( 'watchlisthideminor', 'watchlisthidebots', 'watchlisthideown',
- 'watchlisthideanons', 'watchlisthideliu' );
- if( $wgUseRCPatrol ) {
- $watchlistToggles[] = 'watchlisthidepatrolled';
- }
+ 'watchlisthideanons', 'watchlisthideliu' );
+ if( $wgUseRCPatrol ) $watchlistToggles[] = 'watchlisthidepatrolled';
$wgOut->addHTML(
Xml::fieldset( wfMsg( 'prefs-watchlist' ) ) .
'tog-justify' => 'Justify paragraphs',
'tog-hideminor' => 'Hide minor edits in recent changes',
'tog-hidepatrolled' => 'Hide patrolled edits in recent changes',
+'tog-newpageshidepatrolled' => 'Hide patrolled pages from new page list',
'tog-extendwatchlist' => 'Expand watchlist to show all applicable changes',
'tog-usenewrc' => 'Enhanced recent changes (JavaScript)',
'tog-numberheadings' => 'Auto-number headings',