From: Happy-melon Date: Sat, 7 May 2011 15:28:55 +0000 (+0000) Subject: Fix E_STRICT reported on r86273 CR. X-Git-Tag: 1.31.0-rc.0~30340 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=528366a2fd12d085a29b922a6dca457f4c9f02b2;p=lhc%2Fweb%2Fwiklou.git Fix E_STRICT reported on r86273 CR. --- diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 378c21855f..6f2635f658 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -68,7 +68,8 @@ class ApiPurge extends ApiBase { $result[] = $r; continue; } - $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); + $context = RequestContext::getMain(); + $article = MediaWiki::articleFromTitle( $title, $context ); $article->doPurge(); // Directly purge and skip the UI part of purge(). $r['purged'] = '';