Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -68,26 +68,28 @@ |
69 | 69 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
70 | 70 | $link = $this->skin->makeKnownLinkObj( $title, $title->getPrefixedText() ); |
71 | 71 | |
72 | | - $stitle = SpecialPage::getTitleFor( 'Stabilization' ); |
73 | 72 | if ( FlaggedRevs::useProtectionLevels() ) { |
74 | | - $config = $this->skin->makeKnownLinkObj( $title, wfMsgHtml( 'stablepages-config' ), |
75 | | - 'action=protect' ); |
| 73 | + $config = $this->skin->makeKnownLinkObj( $title, |
| 74 | + wfMsgHtml( 'stablepages-config' ), 'action=protect' ); |
76 | 75 | } else { |
77 | | - $config = $this->skin->makeKnownLinkObj( $stitle, wfMsgHtml( 'stablepages-config' ), |
| 76 | + $config = $this->skin->makeKnownLinkObj( |
| 77 | + SpecialPage::getTitleFor( 'Stabilization' ), |
| 78 | + wfMsgHtml( 'stablepages-config' ), |
78 | 79 | 'page=' . $title->getPrefixedUrl() ); |
79 | 80 | } |
80 | 81 | |
81 | 82 | $type = ''; |
82 | 83 | // Show precedence if there are several possible levels |
83 | 84 | if ( FlaggedRevs::qualityVersions() ) { |
84 | | - if ( intval( $row->fpc_select ) === FLAGGED_VIS_PRISTINE ) { |
| 85 | + $select = intval( $row->fpc_select ); |
| 86 | + if ( $select === FLAGGED_VIS_PRISTINE ) { |
85 | 87 | $type = wfMsgHtml( 'stablepages-prec-pristine' ); |
86 | | - } elseif ( intval( $row->fpc_select ) === FLAGGED_VIS_QUALITY ) { |
| 88 | + } elseif ( $select === FLAGGED_VIS_QUALITY ) { |
87 | 89 | $type = wfMsgHtml( 'stablepages-prec-quality' ); |
88 | | - } else { |
| 90 | + } elseif( $select === FLAGGED_VIS_LATEST ) { |
89 | 91 | $type = wfMsgHtml( 'stablepages-prec-none' ); |
90 | 92 | } |
91 | | - $type = "(<b>{$type}</b>)"; |
| 93 | + if( $type ) $type = "(<b>{$type}</b>)"; |
92 | 94 | } |
93 | 95 | |
94 | 96 | $restr = ''; |