r87641 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87640‎ | r87641 | r87642 >
Date:15:28, 7 May 2011
Author:happy-melon
Status:ok (Comments)
Tags:
Comment:
Fix E_STRICT reported on r86273 CR.
Modified paths:
  • /trunk/phase3/includes/api/ApiPurge.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiPurge.php
@@ -68,7 +68,8 @@
6969 $result[] = $r;
7070 continue;
7171 }
72 - $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() );
 72+ $context = RequestContext::getMain();
 73+ $article = MediaWiki::articleFromTitle( $title, $context );
7374 $article->doPurge(); // Directly purge and skip the UI part of purge().
7475 $r['purged'] = '';
7576

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86273Follow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (a...happy-melon19:25, 17 April 2011

Comments

#Comment by Aaron Schulz (talk | contribs)   04:16, 22 June 2011

What about the other MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); callers?

Status & tagging log