Follow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (and a...
[lhc/web/wiklou.git] / includes / api / ApiPurge.php
index fe54d5f..170f00f 100644 (file)
@@ -68,7 +68,7 @@ class ApiPurge extends ApiBase {
                                $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'] = '';