Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -77,9 +77,6 @@ |
78 | 78 | # This will only distinguish "sigted", "quality", and unreviewed |
79 | 79 | # A small icon will show in the upper right hand corner |
80 | 80 | $wgSimpleFlaggedRevsUI = true; |
81 | | -# Add stable/draft revision tabs. May be redundant due to the tags. |
82 | | -# If you have an open wiki, with the simple UI, you may want to enable these. |
83 | | -$wgFlaggedRevTabs = true; |
84 | 81 | # For visitors, only show tags/icons for unreviewed/outdated pages |
85 | 82 | $wgFlaggedRevsLowProfile = true; |
86 | 83 | |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -183,15 +183,6 @@ |
184 | 184 | global $wgFlaggedRevsAutoReviewNew; |
185 | 185 | return (bool)$wgFlaggedRevsAutoReviewNew; |
186 | 186 | } |
187 | | - |
188 | | - /** |
189 | | - * Should pages have stable/draft tabs when not synced? |
190 | | - * @returns bool |
191 | | - */ |
192 | | - public static function versionTabsShown() { |
193 | | - global $wgFlaggedRevTabs; |
194 | | - return (bool)$wgFlaggedRevTabs; |
195 | | - } |
196 | 187 | |
197 | 188 | /** |
198 | 189 | * Should this user see stable versions by default? |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -585,7 +585,7 @@ |
586 | 586 | if ( FlaggedRevs::forDefaultVersionOnly() ) { |
587 | 587 | // If there is only on quality level and we have tabs to know |
588 | 588 | // which version we are looking at, then just use the lock icon... |
589 | | - return ( !FlaggedRevs::versionTabsShown() || FlaggedRevs::qualityVersions() ); |
| 589 | + return FlaggedRevs::qualityVersions(); |
590 | 590 | } |
591 | 591 | return true; |
592 | 592 | } |
— | — | @@ -1035,7 +1035,7 @@ |
1036 | 1036 | $views['viewsource']['text'] = wfMsg( 'revreview-source' ); |
1037 | 1037 | } |
1038 | 1038 | } |
1039 | | - if ( !FlaggedRevs::versionTabsShown() || $synced ) { |
| 1039 | + if ( $synced ) { |
1040 | 1040 | // Exit, since either the draft tab should not be shown |
1041 | 1041 | // or the page is already the most current revision |
1042 | 1042 | return true; |