Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -938,8 +938,9 @@ |
939 | 939 | public function addVisibilityLink( &$data ) { |
940 | 940 | global $wgUser, $wgRequest, $wgOut; |
941 | 941 | $this->load(); |
942 | | - if ( FlaggedRevs::getProtectionLevels() ) |
| 942 | + if ( FlaggedRevs::useProtectionLevels() ) { |
943 | 943 | return true; // simple custom levels set for action=protect |
| 944 | + } |
944 | 945 | # Check only if the title is reviewable |
945 | 946 | if ( !FlaggedRevs::inReviewNamespace( $this->article->getTitle() ) ) { |
946 | 947 | return true; |
— | — | @@ -973,7 +974,7 @@ |
974 | 975 | public function setActionTabs( $skin, &$actions ) { |
975 | 976 | global $wgUser; |
976 | 977 | $this->load(); |
977 | | - if ( FlaggedRevs::getProtectionLevels() ) { |
| 978 | + if ( FlaggedRevs::useProtectionLevels() ) { |
978 | 979 | return true; // simple custom levels set for action=protect |
979 | 980 | } |
980 | 981 | $title = $this->article->getTitle()->getSubjectPage(); |
— | — | @@ -987,10 +988,10 @@ |
988 | 989 | !isset( $actions['protect'] ) && |
989 | 990 | !isset( $actions['unprotect'] ) && |
990 | 991 | $wgUser->isAllowed( 'stablesettings' ) && |
991 | | - $title->exists() |
992 | | - ) { |
| 992 | + $title->exists() ) |
| 993 | + { |
993 | 994 | $stableTitle = SpecialPage::getTitleFor( 'Stabilization' ); |
994 | | - // Add a tab |
| 995 | + // Add the tab |
995 | 996 | $actions['default'] = array( |
996 | 997 | 'class' => false, |
997 | 998 | 'text' => wfMsg( 'stabilization-tab' ), |