Esempio n. 1
0
function wfNewsTag($templatetext, $argv, $parser)
{
    global $wgTitle;
    $parser->disableCache();
    //TODO: use smart cache & purge...?
    $renderer = new NewsRenderer($wgTitle, $templatetext, $argv, $parser);
    return $renderer->renderNews();
}
Esempio n. 2
0
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();
}