(bug 6771) Make old revisions of MediaWiki pages available with action=raw
authorLupin <lupin@users.mediawiki.org>
Fri, 28 Jul 2006 03:12:54 +0000 (03:12 +0000)
committerLupin <lupin@users.mediawiki.org>
Fri, 28 Jul 2006 03:12:54 +0000 (03:12 +0000)
HISTORY
includes/RawPage.php

diff --git a/HISTORY b/HISTORY
index dd68751..06f5716 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -626,7 +626,7 @@ setting since version 1.2.0. If you have it on, turn it *off* if you can.
 * (bug 6566) Improve input validation on timestamp conversion
 * Implicit group "emailconfirmed" for all users whose email addresses are confirmed
 * (bug 6577) Avoid multiline parser breakage on <pre> with newline in attribute
-
+* (bug 6771) Make old revisions of MediaWiki pages available with action=raw
 
 == Changes since 1.5 ==
 
index 3cdabfd..3c6cff7 100644 (file)
@@ -152,7 +152,7 @@ class RawPage {
                $text = '';
                if( $this->mTitle ) {
                        // If it's a MediaWiki message we can just hit the message cache
-                       if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) {
+                       if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI && !$this->mOldId ) {
                                $key = $this->mTitle->getDBkey();
                                $text = wfMsgForContentNoTrans( $key );
                                # If the message doesn't exist, return a blank