r25765 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25764‎ | r25765 | r25766 >
Date:06:56, 11 September 2007
Author:david
Status:old
Tags:
Comment:
Doh! It's best to actually _SAVE_ to the parser cache instead of just checking it!!!
Modified paths:
  • /branches/liquidthreads/extensions/LqtBaseView.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtBaseView.php
@@ -494,7 +494,8 @@
495495 // Cache miss; parse and output it.
496496 $rev = Revision::newFromTitle( $post->getTitle(), $oldid );
497497 if ($rev) {
498 - $this->output->addWikiText( $rev->getText() );
 498+ $this->output->addPrimaryWikiText( $rev->getText(), $post, true );
 499+ // $this->output->addWikiText( $rev->getText() );
499500 return true;
500501 } else {
501502 return false;

Status & tagging log