From: Brion Vibber Date: Fri, 18 Nov 2005 19:56:19 +0000 (+0000) Subject: * (bug 3996) Fix text for new entries in RC RSS/Atom feed X-Git-Tag: 1.6.0~1157 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7f5d509d2d20cefb264a67bc2e85915bca4a29ff;p=lhc%2Fweb%2Fwiklou.git * (bug 3996) Fix text for new entries in RC RSS/Atom feed --- 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 ) ) . '
'; }