r86401 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86400‎ | r86401 | r86402 >
Date:15:13, 19 April 2011
Author:ialex
Status:ok
Tags:
Comment:
Call SpecialPage::outputHeader() instead of inserting 'centralnotice-summary' message manually
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php
@@ -21,6 +21,7 @@
2222
2323 // Begin output
2424 $this->setHeaders();
 25+ $this->outputHeader();
2526
2627 // Add style file to the output headers
2728 $wgOut->addExtensionStyle( "$wgExtensionAssetsPath/CentralNotice/centralnotice.css" );
@@ -34,9 +35,6 @@
3536 // Initialize error variable
3637 $this->centralNoticeError = false;
3738
38 - // Show summary
39 - $wgOut->addWikiText( wfMsg( 'centralnotice-summary' ) );
40 -
4139 // Show header
4240 $this->printHeader( $sub );
4341

Status & tagging log