r46071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46070‎ | r46071 | r46072 >
Date:11:38, 23 January 2009
Author:raymond
Status:ok (Comments)
Tags:todo 
Comment:
Fix for r46008: Show summary on Special:Drafts only.
Modified paths:
  • /trunk/extensions/Drafts/Drafts.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Drafts/Drafts.classes.php
@@ -281,8 +281,10 @@
282282 // Internationalization
283283 wfLoadExtensionMessages( 'Drafts' );
284284
285 - // Add a special page summary
286 - $wgOut->wrapWikiMsg( '<div class="mw-drafts-summary">$1</div>', array( 'drafts-view-summary', $wgLang->formatNum( $egDraftsLifeSpan ) ) );
 285+ // Add a summary, on Special:Drafts only
 286+ if( !$title || $title->getNamespace() == NS_SPECIAL ) {
 287+ $wgOut->wrapWikiMsg( '<div class="mw-drafts-summary">$1</div>', array( 'drafts-view-summary', $wgLang->formatNum( $egDraftsLifeSpan ) ) );
 288+ }
287289
288290 // Build XML
289291 $wgOut->addHTML(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r46008* Add a special page summary/header...raymond10:03, 22 January 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   22:19, 26 January 2009

This'll do for now. Would probably be more ideal to have it show that in the special page code specifically, and be calling into generic code for the actual list.

Status & tagging log