* (bug 3996) Fix text for new entries in RC RSS/Atom feed
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 18 Nov 2005 19:56:19 +0000 (19:56 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 18 Nov 2005 19:56:19 +0000 (19:56 +0000)
RELEASE-NOTES
includes/SpecialRecentchanges.php

index 8c12d4f..e33f59d 100644 (file)
@@ -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 ===
index bf7caf9..6758b0a 100644 (file)
@@ -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 = '<p><b>' . wfMsg( 'newpage' ) . '</b></p>' .
                                '<div>' . nl2br( htmlspecialchars( $newtext ) ) . '</div>';
                }