$result[] = $r;
continue;
}
- $article = MediaWiki::articleFromTitle( $title );
+ $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() );
$article->doPurge(); // Directly purge and skip the UI part of purge().
$r['purged'] = '';
$cache->loadFromFileCache();
}
# Do any stats increment/watchlist stuff
- $wgArticle = MediaWiki::articleFromTitle( $wgTitle );
+ $wgArticle = MediaWiki::articleFromTitle( $wgTitle, $context );
$wgArticle->viewUpdates();
# Tell OutputPage that output is taken care of
$context->output->disable();