r25798 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25797‎ | r25798 | r25799 >
Date:20:08, 11 September 2007
Author:daniel
Status:old
Tags:
Comment:
added 'silent' option to <newsfeed> tag
Modified paths:
  • /trunk/extensions/News/News.php (modified) (history)

Diff [purge]

Index: trunk/extensions/News/News.php
@@ -56,6 +56,12 @@
5757 $parser->disableCache(); //TODO: use smart cache & purge...?
5858 $wgOut->setSyndicated( true );
5959
 60+ $silent = @$argv['silent'];
 61+ if ( $silent === 'false' || $silent === 'no' || $silent === '0' )
 62+ $silent = false;
 63+
 64+ if ( $silent ) return "";
 65+
6066 $renderer = new NewsRenderer($wgTitle, $templatetext, $argv, $parser);
6167 $html = $renderer->renderFeedPreview();
6268 return $html;

Status & tagging log