From b28f82ca6da62ad0225c7ce900d523e4c060e72e Mon Sep 17 00:00:00 2001 From: Lupin Date: Fri, 28 Jul 2006 03:12:54 +0000 Subject: [PATCH] (bug 6771) Make old revisions of MediaWiki pages available with action=raw --- HISTORY | 2 +- includes/RawPage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index dd68751c99..06f5716cb2 100644 --- 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
 with newline in attribute
-
+* (bug 6771) Make old revisions of MediaWiki pages available with action=raw
 
 == Changes since 1.5 ==
 
diff --git a/includes/RawPage.php b/includes/RawPage.php
index 3cdabfd991..3c6cff7525 100644
--- a/includes/RawPage.php
+++ b/includes/RawPage.php
@@ -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
-- 
2.20.1