Index: trunk/extensions/FlaggedRevs/frontend/specialpages/reports/StablePages_body.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | - Assumes $wgFlaggedRevsProtection is on |
| 4 | +// Assumes $wgFlaggedRevsProtection is on |
5 | 5 | class StablePages extends SpecialPage { |
6 | 6 | protected $pager = null; |
7 | 7 | |
— | — | @@ -31,15 +31,15 @@ |
32 | 32 | $this->getLang()->formatNum( $this->pager->getNumRows() ) ); |
33 | 33 | |
34 | 34 | $fields = array(); |
35 | | - Namespace selector |
| 35 | + // Namespace selector |
36 | 36 | if ( count( FlaggedRevs::getReviewNamespaces() ) > 1 ) { |
37 | 37 | $fields[] = FlaggedRevsXML::getNamespaceMenu( $this->namespace, '' ); |
38 | 38 | } |
39 | | - Restriction level selector |
| 39 | + // Restriction level selector |
40 | 40 | if ( FlaggedRevs::getRestrictionLevels() ) { |
41 | 41 | $fields[] = FlaggedRevsXML::getRestrictionFilterMenu( $this->autoreview ); |
42 | 42 | } |
43 | | - $fields[] = Xml::checkLabel( wfMsg( 'stablepages-indef' ), 'indef', |
| 43 | + $fields[] = Xml::checkLabel( wfMsg( 'stablepages-indef' ), 'indef', |
44 | 44 | 'stablepages-indef', $this->indef ); |
45 | 45 | |
46 | 46 | $form = Html::openElement( 'form', |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | } else { |
65 | 65 | $out->addWikiMsg( 'stablepages-none' ); |
66 | 66 | } |
67 | | - Purge expired entries on one in every 10 queries |
| 67 | + // Purge expired entries on one in every 10 queries |
68 | 68 | if ( !mt_rand( 0, 10 ) ) { |
69 | 69 | FRPageConfig::purgeExpiredConfigurations(); |
70 | 70 | } |
— | — | @@ -71,9 +71,9 @@ |
72 | 72 | |
73 | 73 | public function formatRow( $row ) { |
74 | 74 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
75 | | - Link to page |
| 75 | + // Link to page |
76 | 76 | $link = Linker::link( $title ); |
77 | | - Helpful utility links |
| 77 | + // Helpful utility links |
78 | 78 | $utilLinks = array(); |
79 | 79 | $utilLinks[] = Linker::link( $title, |
80 | 80 | wfMsgHtml( 'stablepages-config' ), |
— | — | @@ -84,13 +84,13 @@ |
85 | 85 | $utilLinks[] = Linker::link( SpecialPage::getTitleFor( 'Log', 'stable' ), |
86 | 86 | wfMsgHtml( 'stable-logpage' ), |
87 | 87 | array(), array( 'page' => $title->getPrefixedText() ), 'known' ); |
88 | | - Autoreview/review restriction level |
| 88 | + // Autoreview/review restriction level |
89 | 89 | $restr = ''; |
90 | 90 | if ( $row->fpc_level != '' ) { |
91 | 91 | $restr = 'autoreview=' . htmlspecialchars( $row->fpc_level ); |
92 | 92 | $restr = "[$restr]"; |
93 | 93 | } |
94 | | - When these configuration settings expire |
| 94 | + // When these configuration settings expire |
95 | 95 | if ( $row->fpc_expiry != 'infinity' && strlen( $row->fpc_expiry ) ) { |
96 | 96 | $expiry_description = " (" . wfMsgForContent( |
97 | 97 | 'protect-expiring', |
— | — | @@ -112,13 +112,15 @@ |
113 | 113 | class StablePagesPager extends AlphabeticPager { |
114 | 114 | public $mForm, $mConds, $namespace, $override; |
115 | 115 | |
116 | | - @param int $namespace (null for "all") |
117 | | - @param string $autoreview ('' for "all", 'none' for no restriction) |
| 116 | + /** |
| 117 | + * @param int $namespace (null for "all") |
| 118 | + * @param string $autoreview ('' for "all", 'none' for no restriction) |
| 119 | + */ |
118 | 120 | function __construct( $form, $conds = array(), $namespace, $autoreview, $indef ) { |
119 | 121 | $this->mForm = $form; |
120 | 122 | $this->mConds = $conds; |
121 | 123 | $this->indef = $indef; |
122 | | - Must be content pages... |
| 124 | + // Must be content pages... |
123 | 125 | $validNS = FlaggedRevs::getReviewNamespaces(); |
124 | 126 | if ( is_integer( $namespace ) ) { |
125 | 127 | if ( !in_array( $namespace, $validNS ) ) { |
— | — | @@ -149,7 +151,7 @@ |
150 | 152 | $conds['fpc_level'] = $this->autoreview; |
151 | 153 | } |
152 | 154 | $conds['page_namespace'] = $this->namespace; |
153 | | - Be sure not to include expired items |
| 155 | + // Be sure not to include expired items |
154 | 156 | if( $this->indef ) { |
155 | 157 | $conds['fpc_expiry'] = Block::infinity(); |
156 | 158 | } else { |