Index: trunk/extensions/FlaggedRevs/presentation/FlaggedRevsUI.hooks.php |
— | — | @@ -330,7 +330,10 @@ |
331 | 331 | } |
332 | 332 | |
333 | 333 | public static function addHideReviewedFilter( $specialPage, &$filters ) { |
334 | | - $filters['hideReviewed'] = array( 'msg' => 'flaggedrevs-hidereviewed', 'default' => false ); |
| 334 | + if ( !FlaggedRevs::useOnlyIfProtected() ) { |
| 335 | + $filters['hideReviewed'] = array( |
| 336 | + 'msg' => 'flaggedrevs-hidereviewed', 'default' => false ); |
| 337 | + } |
335 | 338 | return true; |
336 | 339 | } |
337 | 340 | |
— | — | @@ -419,7 +422,7 @@ |
420 | 423 | $fields[] = 'fp_stable'; |
421 | 424 | $fields[] = 'fp_pending_since'; |
422 | 425 | $join_conds['flaggedpages'] = array( 'LEFT JOIN', 'fp_page_id = rc_cur_id' ); |
423 | | - if ( $wgRequest->getBool( 'hidereviewed' ) ) { |
| 426 | + if ( $wgRequest->getBool( 'hideReviewed' ) && !FlaggedRevs::useOnlyIfProtected() ) { |
424 | 427 | $conds[] = 'rc_timestamp >= fp_pending_since OR fp_stable IS NULL'; |
425 | 428 | } |
426 | 429 | return true; |