From: Brion Vibber Date: Mon, 12 Dec 2005 02:14:09 +0000 (+0000) Subject: * Fix regression: old version missing from edit links on CSS/JS pages X-Git-Tag: 1.6.0~955 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=04898ee622813f9649d71061e3e6fdfe1639ddee;p=lhc%2Fweb%2Fwiklou.git * Fix regression: old version missing from edit links on CSS/JS pages --- 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 ) ) {