From 7f5d509d2d20cefb264a67bc2e85915bca4a29ff Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 18 Nov 2005 19:56:19 +0000 Subject: [PATCH] * (bug 3996) Fix text for new entries in RC RSS/Atom feed --- RELEASE-NOTES | 1 + includes/SpecialRecentchanges.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8c12d4f62f..e33f59d79c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -240,6 +240,7 @@ fully support the editing toolbar, but was found to be too confusing. which someone else will probably whine about because it's not 'perma' enough or something. * (bug 4014) Fix include mode for Allpages on small page sets +* (bug 3996) Fix text for new entries in RC RSS/Atom feed === Caveats === diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index bf7caf9adb..6758b0ae15 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -523,6 +523,12 @@ function rcFormatDiff( $row ) { } wfProfileOut( "$fname-dodiff" ); } else { + $rev = Revision::newFromId( $row->rc_this_oldid ); + if( is_null( $rev ) ) { + $newtext = ''; + } else { + $newtext = $rev->getText(); + } $diffText = '

' . wfMsg( 'newpage' ) . '

' . '
' . nl2br( htmlspecialchars( $newtext ) ) . '
'; } -- 2.20.1