Remove garbage HTML, show user
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 5 May 2008 03:35:37 +0000 (03:35 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 5 May 2008 03:35:37 +0000 (03:35 +0000)
includes/SpecialNewpages.php

index f880ec2..3de2a67 100644 (file)
@@ -316,8 +316,9 @@ class NewPagesForm {
        protected function feedItemDesc( $row ) {
                $revision = Revision::newFromId( $row->rev_id );
                if( $revision ) {
-                       return '<p>' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' .
-                               htmlspecialchars( $revision->getComment() ) . "</p>\n<hr />\n<div>" .
+                       return '<p>' . htmlspecialchars( $revision->getUserText() ) . ': ' .
+                               htmlspecialchars( $revision->getComment() ) . 
+                               "</p>\n<hr />\n<div>" .
                                nl2br( htmlspecialchars( $revision->getText() ) ) . "</div>";
                }
                return '';