* Fix regression: old version missing from edit links on CSS/JS pages
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 12 Dec 2005 02:14:09 +0000 (02:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 12 Dec 2005 02:14:09 +0000 (02:14 +0000)
RELEASE-NOTES
includes/Article.php

index 94c6f95..9aca0b8 100644 (file)
@@ -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 ===
index 792fd7e..fc0efc8 100644 (file)
@@ -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( '<pre>'.htmlspecialchars($this->mContent)."\n</pre>" );
                        } else if ( $rt = Title::newFromRedirect( $text ) ) {