Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -491,6 +491,7 @@ |
492 | 492 | 'tog-justify' => 'Justify paragraphs', |
493 | 493 | 'tog-hideminor' => 'Hide minor edits in recent changes', |
494 | 494 | 'tog-hidepatrolled' => 'Hide patrolled edits in recent changes', |
| 495 | +'tog-newpageshidepatrolled' => 'Hide patrolled pages from new page list', |
495 | 496 | 'tog-extendwatchlist' => 'Expand watchlist to show all applicable changes', |
496 | 497 | 'tog-usenewrc' => 'Enhanced recent changes (JavaScript)', |
497 | 498 | 'tog-numberheadings' => 'Auto-number headings', |
Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -1093,10 +1093,11 @@ |
1094 | 1094 | ); |
1095 | 1095 | |
1096 | 1096 | $toggles[] = 'hideminor'; |
1097 | | - if( $wgUseRCPatrol ) |
| 1097 | + if( $wgUseRCPatrol ) { |
1098 | 1098 | $toggles[] = 'hidepatrolled'; |
1099 | | - if( $wgRCShowWatchingUsers ) |
1100 | | - $toggles[] = 'shownumberswatching'; |
| 1099 | + $toggles[] = 'newpageshidepatrolled'; |
| 1100 | + } |
| 1101 | + if( $wgRCShowWatchingUsers ) $toggles[] = 'shownumberswatching'; |
1101 | 1102 | $toggles[] = 'usenewrc'; |
1102 | 1103 | |
1103 | 1104 | $wgOut->addHTML( |
— | — | @@ -1106,10 +1107,8 @@ |
1107 | 1108 | |
1108 | 1109 | # Watchlist |
1109 | 1110 | $watchlistToggles = array( 'watchlisthideminor', 'watchlisthidebots', 'watchlisthideown', |
1110 | | - 'watchlisthideanons', 'watchlisthideliu' ); |
1111 | | - if( $wgUseRCPatrol ) { |
1112 | | - $watchlistToggles[] = 'watchlisthidepatrolled'; |
1113 | | - } |
| 1111 | + 'watchlisthideanons', 'watchlisthideliu' ); |
| 1112 | + if( $wgUseRCPatrol ) $watchlistToggles[] = 'watchlisthidepatrolled'; |
1114 | 1113 | |
1115 | 1114 | $wgOut->addHTML( |
1116 | 1115 | Xml::fieldset( wfMsg( 'prefs-watchlist' ) ) . |
Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | $opts = new FormOptions(); |
26 | 26 | $this->opts = $opts; // bind |
27 | 27 | $opts->add( 'hideliu', false ); |
28 | | - $opts->add( 'hidepatrolled', false ); |
| 28 | + $opts->add( 'hidepatrolled', $wgUser->getBoolOption( 'newpageshidepatrolled' ) ); |
29 | 29 | $opts->add( 'hidebots', false ); |
30 | 30 | $opts->add( 'hideredirs', true ); |
31 | 31 | $opts->add( 'limit', (int)$wgUser->getOption( 'rclimit' ) ); |
Index: trunk/phase3/includes/User.php |
— | — | @@ -1020,6 +1020,7 @@ |
1021 | 1021 | wfRunHooks( 'UserToggles', array( &$extraToggles ) ); |
1022 | 1022 | if( $wgUseRCPatrol ) { |
1023 | 1023 | $extraToggles[] = 'hidepatrolled'; |
| 1024 | + $extraToggles[] = 'newpageshidepatrolled'; |
1024 | 1025 | $extraToggles[] = 'watchlisthidepatrolled'; |
1025 | 1026 | } |
1026 | 1027 | return array_merge( self::$mToggles, $extraToggles, $wgContLang->getExtraUserToggles() ); |