Follow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (and a...
authorHappy-melon <happy-melon@users.mediawiki.org>
Sun, 17 Apr 2011 19:25:30 +0000 (19:25 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sun, 17 Apr 2011 19:25:30 +0000 (19:25 +0000)
includes/api/ApiPurge.php
index.php

index fe54d5f..170f00f 100644 (file)
@@ -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'] = '';
                        
index 32ab384..6c09dca 100644 (file)
--- 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();