Index: trunk/phase3/includes/api/ApiPurge.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $result[] = $r; |
70 | 70 | continue; |
71 | 71 | } |
72 | | - $article = MediaWiki::articleFromTitle( $title ); |
| 72 | + $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); |
73 | 73 | $article->doPurge(); // Directly purge and skip the UI part of purge(). |
74 | 74 | $r['purged'] = ''; |
75 | 75 | |
Index: trunk/phase3/index.php |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | $cache->loadFromFileCache(); |
121 | 121 | } |
122 | 122 | # Do any stats increment/watchlist stuff |
123 | | - $wgArticle = MediaWiki::articleFromTitle( $wgTitle ); |
| 123 | + $wgArticle = MediaWiki::articleFromTitle( $wgTitle, $context ); |
124 | 124 | $wgArticle->viewUpdates(); |
125 | 125 | # Tell OutputPage that output is taken care of |
126 | 126 | $context->output->disable(); |
Index: trunk/extensions/WebDAV/WebDavServer.php |
— | — | @@ -334,7 +334,7 @@ |
335 | 335 | } |
336 | 336 | } |
337 | 337 | |
338 | | - $article = MediaWiki::articleFromTitle( $title ); |
| 338 | + $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); |
339 | 339 | |
340 | 340 | $rawPage = new RawPage( $article ); |
341 | 341 | |
— | — | @@ -395,7 +395,7 @@ |
396 | 396 | $title = Title::newMainPage(); |
397 | 397 | } |
398 | 398 | |
399 | | - $article = MediaWiki::articleFromTitle( $title ); |
| 399 | + $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); |
400 | 400 | |
401 | 401 | # Must check if article exists to avoid 500 Internal Server Error |
402 | 402 | |
— | — | @@ -434,7 +434,7 @@ |
435 | 435 | return; |
436 | 436 | } |
437 | 437 | |
438 | | - $article = MediaWiki::articleFromTitle( $title ); |
| 438 | + $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() ); |
439 | 439 | |
440 | 440 | if ( ( $handle = $this->openRequestBody() ) === false ) { |
441 | 441 | return; |
Index: trunk/extensions/TalkHere/TalkHere.php |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | ); |
77 | 77 | |
78 | 78 | $wgRequest = new FauxRequest( $args ); |
79 | | - $article = MediaWiki::articleFromTitle( $wgTitle ); |
| 79 | + $article = MediaWiki::articleFromTitle( $wgTitle, RequestContext::getMain() ); |
80 | 80 | $editor = new EditPage( $article ); |
81 | 81 | |
82 | 82 | //generate form |
Index: trunk/extensions/TalkHere/TalkHereHooks.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | $skin = $wgUser->getSkin(); |
49 | 49 | |
50 | | - $talkArticle = MediaWiki::articleFromTitle( $talk ); |
| 50 | + $talkArticle = MediaWiki::articleFromTitle( $talk, RequestContext::getMain() ); |
51 | 51 | |
52 | 52 | $wgOut->addHTML('<div class="talkhere" id="talkhere">'); |
53 | 53 | |
Index: trunk/extensions/DumpHTML/dumpHTML.inc |
— | — | @@ -799,9 +799,9 @@ |
800 | 800 | $wgOut = new OutputPage; |
801 | 801 | $wgOut->parserOptions( new ParserOptions ); |
802 | 802 | $wgOut->setTitle( $title ); |
803 | | - SpecialPage::executePath( $wgTitle ); |
| 803 | + SpecialPage::executePath( $wgTitle, RequestContext::getMain() ); |
804 | 804 | } else { |
805 | | - $article = MediaWiki::articleFromTitle( $wgTitle ); |
| 805 | + $article = MediaWiki::articleFromTitle( $wgTitle, RequestContext::getMain() ); |
806 | 806 | $rt = $article->followRedirect(); |
807 | 807 | if ( is_object( $rt ) ) { |
808 | 808 | return $this->getRedirect( $rt ); |