Index: trunk/phase3/includes/diff/DifferenceInterface.php |
— | — | @@ -450,7 +450,7 @@ |
451 | 451 | } |
452 | 452 | } elseif( $pCache ) { |
453 | 453 | $article = new Article( $this->mTitle, 0 ); |
454 | | - $pOutput = ParserCache::singleton()->get( $article, $wgUser ); |
| 454 | + $pOutput = ParserCache::singleton()->get( $article, $wgOut->parserOptions() ); |
455 | 455 | if( $pOutput ) { |
456 | 456 | $wgOut->addParserOutput( $pOutput ); |
457 | 457 | } else { |
Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php |
— | — | @@ -596,7 +596,7 @@ |
597 | 597 | $user, FlaggedArticle $article, Revision $rev, |
598 | 598 | $templateIDs, $imageSHA1Keys, $stableDiff = false |
599 | 599 | ) { |
600 | | - global $wgRequest; |
| 600 | + global $wgRequest, $wgOut; |
601 | 601 | if ( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
602 | 602 | return false; # The revision must be valid and public |
603 | 603 | } |
— | — | @@ -689,7 +689,7 @@ |
690 | 690 | # Current version: try parser cache |
691 | 691 | if ( $rev->isCurrent() ) { |
692 | 692 | $parserCache = ParserCache::singleton(); |
693 | | - $pOutput = $parserCache->get( $article, $user ); |
| 693 | + $pOutput = $parserCache->get( $article, $wgOut->parserOptions() ); |
694 | 694 | } |
695 | 695 | # Otherwise (or on cache miss), parse the rev text... |
696 | 696 | if ( !$pOutput || !isset( $pOutput->fr_fileSHA1Keys ) ) { |
Index: trunk/extensions/FlaggedRevs/api/ApiReview.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | * except that it generates the template and image parameters itself. |
35 | 35 | */ |
36 | 36 | public function execute() { |
37 | | - global $wgUser; |
| 37 | + global $wgUser, $wgOut; |
38 | 38 | $params = $this->extractRequestParams(); |
39 | 39 | // Check basic permissions |
40 | 40 | if ( !$wgUser->isAllowed( 'review' ) ) { |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | $article = new FlaggedArticle( $title, $revid ); |
74 | 74 | if ( $rev->isCurrent() ) { |
75 | 75 | $parserCache = ParserCache::singleton(); |
76 | | - $parserOutput = $parserCache->get( $article, $wgUser ); |
| 76 | + $parserOutput = $parserCache->get( $article, $wgOut->parserOptions() ); |
77 | 77 | } |
78 | 78 | if ( !$parserOutput || !isset( $parserOutput->fr_fileSHA1Keys ) ) { |
79 | 79 | // Miss, we have to reparse the page |