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