Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -23,7 +23,6 @@ |
24 | 24 | $wgHooks['ArticlePurge'][] = 'pr_articlePurge'; |
25 | 25 | $wgHooks['SpecialMovepageAfterMove'][] = 'pr_movePage'; |
26 | 26 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'pr_schema_update'; |
27 | | -$wgHooks['OutputPageBeforeHTML'][] = 'pr_OutputPageBeforeHTML'; |
28 | 27 | $wgHooks['EditPage::importFormData'][] = 'pr_formData'; |
29 | 28 | |
30 | 29 | |
— | — | @@ -348,6 +347,7 @@ |
349 | 348 | var prp_source_message = \"" . Xml::escapeJsString( wfMsg( 'proofreadpage_source_message' ) ) . "\"; |
350 | 349 | </script>\n" |
351 | 350 | ); |
| 351 | + pr_displayProofreadingStatus( $out ); |
352 | 352 | } |
353 | 353 | |
354 | 354 | function pr_prepareIndex( $out ) { |
— | — | @@ -1283,13 +1283,9 @@ |
1284 | 1284 | /* |
1285 | 1285 | * In ns-0, display the proofreading status of transcluded pages |
1286 | 1286 | */ |
1287 | | -function pr_OutputPageBeforeHTML( $out, $text ) { |
| 1287 | +function pr_displayProofreadingStatus( $out ) { |
1288 | 1288 | global $wgTitle, $wgUser; |
1289 | 1289 | |
1290 | | - if($wgTitle->getNamespace() != NS_MAIN){ |
1291 | | - return true; |
1292 | | - } |
1293 | | - |
1294 | 1290 | $id = $wgTitle->mArticleID; |
1295 | 1291 | if($id == -1) { |
1296 | 1292 | return true; |