r45633 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45632‎ | r45633 | r45634 >
Date:13:20, 10 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 15659) Fixed cache bug. Avoid using broken getContent() function.
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -508,7 +508,8 @@
509509 # If $text is set, then the stableOutput is new. In that case,
510510 # the current must also be new to avoid sync goofs.
511511 if( $currentOutput==false || isset($text) ) {
512 - $text = $article->getContent();
 512+ $rev = Revision::newFromTitle( $article->getTitle() );
 513+ $text = $rev ? $rev->getText() : false;
513514 $title = $article->getTitle();
514515 $options = self::makeParserOptions();
515516 $currentOutput = $wgParser->parse( $text, $title, $options );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r41289Some tweaks for bug 15659aaron18:37, 26 September 2008

Status & tagging log