Index: trunk/extensions/FlaggedRevs/presentation/FlaggedArticleView.php |
— | — | @@ -1175,14 +1175,10 @@ |
1176 | 1176 | if ( $this->article->getTitle()->isTalkPage() ) { |
1177 | 1177 | return true; // leave talk pages alone |
1178 | 1178 | } |
1179 | | - // Get the type of action requested |
1180 | | - $action = $wgRequest->getVal( 'action', 'view' ); |
1181 | 1179 | if ( !$this->article->isReviewable() ) { |
1182 | 1180 | return true; // Not a reviewable page or the UI is hidden |
1183 | 1181 | } |
1184 | | - // XXX: shouldn't the session slave position check handle this? |
1185 | | - $flags = ( $action == 'rollback' ) ? FR_MASTER : 0; |
1186 | | - $srev = $this->article->getStableRev( $flags ); |
| 1182 | + $srev = $this->article->getStableRev(); |
1187 | 1183 | if ( !$srev ) { |
1188 | 1184 | return true; // No stable revision exists |
1189 | 1185 | } |