Index: trunk/extensions/FlaggedRevs/language/QualityOversight.i18n.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | |
11 | 11 | $messages['en'] = array( |
12 | 12 | 'qualityoversight' => 'Quality oversight', |
13 | | - 'qualityoversight-list' => 'This page lists the most recent approvals and depreciations of revisions.', |
| 13 | + 'qualityoversight-list' => 'This page lists the most recent approvals and deprecations of revisions.', |
14 | 14 | 'qualityoversight-legend' => 'Search recent review logs', |
15 | 15 | ); |
16 | 16 | |
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -70,12 +70,17 @@ |
71 | 71 | } |
72 | 72 | $stable = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('stablepages-stable'), 'stable=1' ); |
73 | 73 | |
74 | | - if( intval($row->fpc_select) === FLAGGED_VIS_PRISTINE ) { |
75 | | - $type = wfMsgHtml('stablepages-prec-pristine'); |
76 | | - } elseif( intval($row->fpc_select) === FLAGGED_VIS_QUALITY ) { |
77 | | - $type = wfMsgHtml('stablepages-prec-quality'); |
78 | | - } else { |
79 | | - $type = wfMsgHtml('stablepages-prec-none'); |
| 74 | + $type = ''; |
| 75 | + // Show precedence if there are several possible levels |
| 76 | + if( FlaggedRevs::qualityVersions() ) { |
| 77 | + if( intval($row->fpc_select) === FLAGGED_VIS_PRISTINE ) { |
| 78 | + $type = wfMsgHtml('stablepages-prec-pristine'); |
| 79 | + } elseif( intval($row->fpc_select) === FLAGGED_VIS_QUALITY ) { |
| 80 | + $type = wfMsgHtml('stablepages-prec-quality'); |
| 81 | + } else { |
| 82 | + $type = wfMsgHtml('stablepages-prec-none'); |
| 83 | + } |
| 84 | + $type = " (<b>{$type}</b>) "; |
80 | 85 | } |
81 | 86 | |
82 | 87 | if( $row->fpc_expiry != 'infinity' && strlen($row->fpc_expiry) ) { |
— | — | @@ -89,7 +94,7 @@ |
90 | 95 | $expiry_description = ""; |
91 | 96 | } |
92 | 97 | |
93 | | - return "<li>{$link} ({$config}) [{$stable}] (<b>{$type}</b>) <i>{$expiry_description}</i></li>"; |
| 98 | + return "<li>{$link} ({$config}) [{$stable}]{$type}<i>{$expiry_description}</i></li>"; |
94 | 99 | } |
95 | 100 | } |
96 | 101 | |