Fix E_STRICT reported on r86273 CR.
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 7 May 2011 15:28:55 +0000 (15:28 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 7 May 2011 15:28:55 +0000 (15:28 +0000)
includes/api/ApiPurge.php

index 378c218..6f2635f 100644 (file)
@@ -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'] = '';