Actually use $this->stripComment()
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 19 Oct 2008 06:31:34 +0000 (06:31 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 19 Oct 2008 06:31:34 +0000 (06:31 +0000)
includes/specials/SpecialNewpages.php

index 3783cde..5096d2d 100644 (file)
@@ -333,7 +333,7 @@ class SpecialNewpages extends SpecialPage {
                $revision = Revision::newFromId( $row->rev_id );
                if( $revision ) {
                        return '<p>' . htmlspecialchars( $revision->getUserText() ) . ': ' .
-                               htmlspecialchars( $revision->getComment() ) . 
+                               htmlspecialchars( $this->stripComment( $revision->getComment() ) ) . 
                                "</p>\n<hr />\n<div>" .
                                nl2br( htmlspecialchars( $revision->getText() ) ) . "</div>";
                }