Index: trunk/phase3/includes/Parser.php |
— | — | @@ -268,7 +268,10 @@ |
269 | 269 | |
270 | 270 | $this->mOptions = $options; |
271 | 271 | $this->mTitle =& $title; |
272 | | - $this->mRevisionId = $revid; |
| 272 | + $oldRevisionId = $this->mRevisionId; |
| 273 | + if( $revid !== null ) { |
| 274 | + $this->mRevisionId = $revid; |
| 275 | + } |
273 | 276 | $this->mOutputType = OT_HTML; |
274 | 277 | |
275 | 278 | //$text = $this->strip( $text, $this->mStripState ); |
— | — | @@ -349,6 +352,7 @@ |
350 | 353 | wfRunHooks( 'ParserAfterTidy', array( &$this, &$text ) ); |
351 | 354 | |
352 | 355 | $this->mOutput->setText( $text ); |
| 356 | + $this->mRevisionId = $oldRevisionId; |
353 | 357 | wfProfileOut( $fname ); |
354 | 358 | |
355 | 359 | return $this->mOutput; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -45,6 +45,8 @@ |
46 | 46 | * (bug 6618) Improve permissions/error detection in Special:Lockdb |
47 | 47 | * Quick hack for extension testing: parser test doesn't create new message |
48 | 48 | cache object. |
| 49 | +* (bug 6299) Maintain parser's revision ID across recursive calls to fix |
| 50 | + {{REVISIONID}} when Cite extension is used |
49 | 51 | |
50 | 52 | |
51 | 53 | == Languages updated == |