* (bug 5403) Fix Special:Newpages RSS/Atom feeds
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 12 Apr 2006 20:14:01 +0000 (20:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 12 Apr 2006 20:14:01 +0000 (20:14 +0000)
RELEASE-NOTES
includes/SpecialNewpages.php

index ba6827c..059961d 100644 (file)
@@ -59,6 +59,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5548) Improvements to Indonesian localisation [patch: Ivan Lanin]
 * Add TALKSPACE, SUBJECTSPACE, TALKPAGENAME, SUBJECTPAGENAME (and encoded forms for all)
   magic words
+* (bug 5403) Fix Special:Newpages RSS/Atom feeds
+
 
 == Compatibility ==
 
index c3232b5..2a7db04 100644 (file)
@@ -99,7 +99,8 @@ class NewPagesPage extends QueryPage {
                if( isset( $row->rev_id ) ) {
                        $revision = Revision::newFromId( $row->rev_id );
                        if( $revision ) {
-                               return '<p>' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' . $text . "</p>\n<hr />\n<div>" .
+                               return '<p>' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' .
+                                       htmlspecialchars( $revision->getComment() ) . "</p>\n<hr />\n<div>" .
                                        nl2br( htmlspecialchars( $revision->getText() ) ) . "</div>";
                        }
                }