Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -1067,7 +1067,7 @@ |
1068 | 1068 | $wgOut->addHTML( Xml::closeElement( 'fieldset' ) ); |
1069 | 1069 | |
1070 | 1070 | # Recent changes |
1071 | | - global $wgRCMaxAge; |
| 1071 | + global $wgRCMaxAge, $wgUseRCPatrol; |
1072 | 1072 | $wgOut->addHTML( |
1073 | 1073 | Xml::fieldset( wfMsg( 'prefs-rc' ) ) . |
1074 | 1074 | Xml::openElement( 'table' ) . |
— | — | @@ -1093,7 +1093,8 @@ |
1094 | 1094 | ); |
1095 | 1095 | |
1096 | 1096 | $toggles[] = 'hideminor'; |
1097 | | - $toggles[] = 'hidepatrolled'; |
| 1097 | + if( $wgUseRCPatrol ) |
| 1098 | + $toggles[] = 'hidepatrolled'; |
1098 | 1099 | if( $wgRCShowWatchingUsers ) |
1099 | 1100 | $toggles[] = 'shownumberswatching'; |
1100 | 1101 | $toggles[] = 'usenewrc'; |
— | — | @@ -1104,6 +1105,12 @@ |
1105 | 1106 | ); |
1106 | 1107 | |
1107 | 1108 | # Watchlist |
| 1109 | + $watchlistToggles = array( 'watchlisthideminor', 'watchlisthidebots', 'watchlisthideown', |
| 1110 | + 'watchlisthideanons', 'watchlisthideliu' ); |
| 1111 | + if( $wgUseRCPatrol ) { |
| 1112 | + $watchlistToggles[] = 'watchlisthidepatrolled'; |
| 1113 | + } |
| 1114 | + |
1108 | 1115 | $wgOut->addHTML( |
1109 | 1116 | Xml::fieldset( wfMsg( 'prefs-watchlist' ) ) . |
1110 | 1117 | Xml::inputLabel( wfMsg( 'prefs-watchlist-days' ), 'wpWatchlistDays', 'wpWatchlistDays', 3, $this->mWatchlistDays ) . ' ' . |
— | — | @@ -1113,8 +1120,7 @@ |
1114 | 1121 | Xml::inputLabel( wfMsg( 'prefs-watchlist-edits' ), 'wpWatchlistEdits', 'wpWatchlistEdits', 3, $this->mWatchlistEdits ) . ' ' . |
1115 | 1122 | wfMsgHTML( 'prefs-watchlist-edits-max' ) . |
1116 | 1123 | '<br /><br />' . |
1117 | | - $this->getToggles( array( 'watchlisthideminor', 'watchlisthidebots', 'watchlisthideown', |
1118 | | - 'watchlisthideanons', 'watchlisthideliu', 'watchlisthidepatrolled' ) ) |
| 1124 | + $this->getToggles( $watchlistToggles ) |
1119 | 1125 | ); |
1120 | 1126 | |
1121 | 1127 | if( $wgUser->isAllowed( 'createpage' ) || $wgUser->isAllowed( 'createtalk' ) ) { |