r65954 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65953‎ | r65954 | r65955 >
Date:16:09, 5 May 2010
Author:thomasv
Status:ok
Tags:
Comment:
fix bug 23363; this is beau's patch slightly modified by me
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -23,7 +23,6 @@
2424 $wgHooks['ArticlePurge'][] = 'pr_articlePurge';
2525 $wgHooks['SpecialMovepageAfterMove'][] = 'pr_movePage';
2626 $wgHooks['LoadExtensionSchemaUpdates'][] = 'pr_schema_update';
27 -$wgHooks['OutputPageBeforeHTML'][] = 'pr_OutputPageBeforeHTML';
2827 $wgHooks['EditPage::importFormData'][] = 'pr_formData';
2928
3029
@@ -348,6 +347,7 @@
349348 var prp_source_message = \"" . Xml::escapeJsString( wfMsg( 'proofreadpage_source_message' ) ) . "\";
350349 </script>\n"
351350 );
 351+ pr_displayProofreadingStatus( $out );
352352 }
353353
354354 function pr_prepareIndex( $out ) {
@@ -1283,13 +1283,9 @@
12841284 /*
12851285 * In ns-0, display the proofreading status of transcluded pages
12861286 */
1287 -function pr_OutputPageBeforeHTML( $out, $text ) {
 1287+function pr_displayProofreadingStatus( $out ) {
12881288 global $wgTitle, $wgUser;
12891289
1290 - if($wgTitle->getNamespace() != NS_MAIN){
1291 - return true;
1292 - }
1293 -
12941290 $id = $wgTitle->mArticleID;
12951291 if($id == -1) {
12961292 return true;

Status & tagging log