From 400357e90af84da3dacd8e15ac221d74e952586c Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sun, 17 Apr 2011 19:25:30 +0000 Subject: [PATCH] Follow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (and a few edgecases which were missed in core) --- includes/api/ApiPurge.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index fe54d5f41a..170f00fbbd 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -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'] = ''; diff --git a/index.php b/index.php index 32ab38472a..6c09dca328 100644 --- a/index.php +++ b/index.php @@ -119,7 +119,7 @@ if ( $wgUseFileCache && $wgTitle !== null ) { $cache->loadFromFileCache(); } # Do any stats increment/watchlist stuff - $wgArticle = MediaWiki::articleFromTitle( $wgTitle ); + $wgArticle = MediaWiki::articleFromTitle( $wgTitle, $context ); $wgArticle->viewUpdates(); # Tell OutputPage that output is taken care of $context->output->disable(); -- 2.20.1