function wfNewsTag($templatetext, $argv, $parser) { global $wgTitle; $parser->disableCache(); //TODO: use smart cache & purge...? $renderer = new NewsRenderer($wgTitle, $templatetext, $argv, $parser); return $renderer->renderNews(); }
function wfNewsTag($templatetext, $argv, $parser) { $context = RequestContext::getMain(); $parser->disableCache(); //TODO: use smart cache & purge...? $renderer = new NewsRenderer($context, $templatetext, $argv, $parser); return $renderer->renderNews(); }