From 04898ee622813f9649d71061e3e6fdfe1639ddee Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 12 Dec 2005 02:14:09 +0000 Subject: [PATCH] * Fix regression: old version missing from edit links on CSS/JS pages --- RELEASE-NOTES | 1 + includes/Article.php | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 94c6f95ca3..9aca0b87af 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -311,6 +311,7 @@ fully support the editing toolbar, but was found to be too confusing. * Fix regression: old version missing from edit links in Nostalgia skin * (bug 1600) Trigger edit conflict on duplicate section=new submissions * (bug 4001) Use local variables properly in wikibits.js akeytt() +* Fix regression: old version missing from edit links on CSS/JS pages === Caveats === diff --git a/includes/Article.php b/includes/Article.php index 792fd7e665..fc0efc8051 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -793,6 +793,7 @@ class Article { $this->mTitle->getNamespace() == NS_USER && preg_match('/\\/[\\w]+\\.(css|js)$/', $this->mTitle->getDBkey()) ) { + $wgOut->setRevisionId( $this->getRevIdFetched() ); $wgOut->addWikiText( wfMsg('clearyourcache')); $wgOut->addHTML( '
'.htmlspecialchars($this->mContent)."\n
" ); } else if ( $rt = Title::newFromRedirect( $text ) ) { -- 2.20.1