Index: trunk/phase3/includes/api/ApiPurge.php |
— | — | @@ -68,7 +68,8 @@ |
69 | 69 | $result[] = $r; |
70 | 70 | continue; |
71 | 71 | } |
72 | | - $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); |
| 72 | + $context = RequestContext::getMain(); |
| 73 | + $article = MediaWiki::articleFromTitle( $title, $context ); |
73 | 74 | $article->doPurge(); // Directly purge and skip the UI part of purge(). |
74 | 75 | $r['purged'] = ''; |
75 | 76 | |