Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -57,6 +57,7 @@ |
58 | 58 | self::$minSL[$tag] = 1; |
59 | 59 | } |
60 | 60 | global $wgFlaggedRevsProtectLevels; |
| 61 | + $wgFlaggedRevsProtectLevels = (array)$wgFlaggedRevsProtectLevels; |
61 | 62 | foreach( $wgFlaggedRevsProtectLevels as $level => &$config ) { |
62 | 63 | # Sanity checks |
63 | 64 | if( !isset($config['select']) || !isset($config['override']) || !isset($config['autoreview']) ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -62,8 +62,13 @@ |
63 | 63 | $link = $this->skin->makeKnownLinkObj( $title, $title->getPrefixedText() ); |
64 | 64 | |
65 | 65 | $stitle = SpecialPage::getTitleFor( 'Stabilization' ); |
66 | | - $config = $this->skin->makeKnownLinkObj( $stitle, wfMsgHtml('stablepages-config'), |
67 | | - 'page=' . $title->getPrefixedUrl() ); |
| 66 | + if( count( FlaggedRevs::getProtectionLevels() ) ) { |
| 67 | + $config = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('stablepages-config'), |
| 68 | + 'action=protect' ); |
| 69 | + } else { |
| 70 | + $config = $this->skin->makeKnownLinkObj( $stitle, wfMsgHtml('stablepages-config'), |
| 71 | + 'page=' . $title->getPrefixedUrl() ); |
| 72 | + } |
68 | 73 | $stable = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('stablepages-stable'), 'stable=1' ); |
69 | 74 | |
70 | 75 | if( intval($row->fpc_select) === FLAGGED_VIS_PRISTINE ) { |