Index: trunk/phase3/includes/Article.php |
— | — | @@ -833,13 +833,13 @@ |
834 | 834 | * trigger when the parser cache is used. |
835 | 835 | */ |
836 | 836 | wfRunHooks( 'ArticleViewHeader', array( &$this ) ) ; |
| 837 | + $wgOut->setRevisionId( $this->getRevIdFetched() ); |
837 | 838 | # wrap user css and user js in pre and don't parse |
838 | 839 | # XXX: use $this->mTitle->usCssJsSubpage() when php is fixed/ a workaround is found |
839 | 840 | if ( |
840 | 841 | $this->mTitle->getNamespace() == NS_USER && |
841 | 842 | preg_match('/\\/[\\w]+\\.(css|js)$/', $this->mTitle->getDBkey()) |
842 | 843 | ) { |
843 | | - $wgOut->setRevisionId( $this->getRevIdFetched() ); |
844 | 844 | $wgOut->addWikiText( wfMsg('clearyourcache')); |
845 | 845 | $wgOut->addHTML( '<pre>'.htmlspecialchars($this->mContent)."\n</pre>" ); |
846 | 846 | } else if ( $rt = Title::newFromRedirect( $text ) ) { |
— | — | @@ -860,7 +860,6 @@ |
861 | 861 | $wgOut->addParserOutputNoText( $parseout ); |
862 | 862 | } else if ( $pcache ) { |
863 | 863 | # Display content and save to parser cache |
864 | | - $wgOut->setRevisionId( $this->getRevIdFetched() ); |
865 | 864 | $wgOut->addPrimaryWikiText( $text, $this ); |
866 | 865 | } else { |
867 | 866 | # Display content, don't attempt to save to parser cache |
— | — | @@ -869,7 +868,6 @@ |
870 | 869 | if( !$this->isCurrent() ) { |
871 | 870 | $oldEditSectionSetting = $wgOut->mParserOptions->setEditSection( false ); |
872 | 871 | } |
873 | | - $wgOut->setRevisionId( $this->getRevIdFetched() ); |
874 | 872 | $wgOut->addWikiText( $text ); |
875 | 873 | |
876 | 874 | if( !$this->isCurrent() ) { |