$wgOut->addHTML( Xml::closeElement( 'fieldset' ) );
# Recent changes
- global $wgRCMaxAge;
+ global $wgRCMaxAge, $wgUseRCPatrol;
$wgOut->addHTML(
Xml::fieldset( wfMsg( 'prefs-rc' ) ) .
Xml::openElement( 'table' ) .
);
$toggles[] = 'hideminor';
- $toggles[] = 'hidepatrolled';
+ if( $wgUseRCPatrol )
+ $toggles[] = 'hidepatrolled';
if( $wgRCShowWatchingUsers )
$toggles[] = 'shownumberswatching';
$toggles[] = 'usenewrc';
);
# Watchlist
+ $watchlistToggles = array( 'watchlisthideminor', 'watchlisthidebots', 'watchlisthideown',
+ 'watchlisthideanons', 'watchlisthideliu' );
+ if( $wgUseRCPatrol ) {
+ $watchlistToggles[] = 'watchlisthidepatrolled';
+ }
+
$wgOut->addHTML(
Xml::fieldset( wfMsg( 'prefs-watchlist' ) ) .
Xml::inputLabel( wfMsg( 'prefs-watchlist-days' ), 'wpWatchlistDays', 'wpWatchlistDays', 3, $this->mWatchlistDays ) . ' ' .
Xml::inputLabel( wfMsg( 'prefs-watchlist-edits' ), 'wpWatchlistEdits', 'wpWatchlistEdits', 3, $this->mWatchlistEdits ) . ' ' .
wfMsgHTML( 'prefs-watchlist-edits-max' ) .
'<br /><br />' .
- $this->getToggles( array( 'watchlisthideminor', 'watchlisthidebots', 'watchlisthideown',
- 'watchlisthideanons', 'watchlisthideliu', 'watchlisthidepatrolled' ) )
+ $this->getToggles( $watchlistToggles )
);
if( $wgUser->isAllowed( 'createpage' ) || $wgUser->isAllowed( 'createtalk' ) ) {