Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -125,6 +125,10 @@ |
126 | 126 | } |
127 | 127 | |
128 | 128 | $title = $article->getTitle(); |
| 129 | + if ( ! ApprovedRevs::pageIsApprovable( $title ) ) { |
| 130 | + return true; |
| 131 | + } |
| 132 | + |
129 | 133 | $revisionID = ApprovedRevs::getApprovedRevID( $title ); |
130 | 134 | if ( !empty( $revisionID ) ) { |
131 | 135 | return true; |
— | — | @@ -144,6 +148,9 @@ |
145 | 149 | return true; |
146 | 150 | } |
147 | 151 | |
| 152 | + ApprovedRevs::addCSS(); |
| 153 | + ApprovedRevs::loadMessages(); |
| 154 | + |
148 | 155 | $content = ''; |
149 | 156 | global $wgOut; |
150 | 157 | if ( $wgOut->getSubtitle() != '' ) { |