From: Lupin Date: Fri, 28 Jul 2006 03:12:54 +0000 (+0000) Subject: (bug 6771) Make old revisions of MediaWiki pages available with action=raw X-Git-Tag: 1.31.0-rc.0~56131 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=b28f82ca6da62ad0225c7ce900d523e4c060e72e;p=lhc%2Fweb%2Fwiklou.git (bug 6771) Make old revisions of MediaWiki pages available with action=raw --- 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