r34230 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34229‎ | r34230 | r34231 >
Date:03:35, 5 May 2008
Author:aaron
Status:old
Tags:
Comment:
Remove garbage HTML, show user
Modified paths:
  • /trunk/phase3/includes/SpecialNewpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialNewpages.php
@@ -316,8 +316,9 @@
317317 protected function feedItemDesc( $row ) {
318318 $revision = Revision::newFromId( $row->rev_id );
319319 if( $revision ) {
320 - return '<p>' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' .
321 - htmlspecialchars( $revision->getComment() ) . "</p>\n<hr />\n<div>" .
 320+ return '<p>' . htmlspecialchars( $revision->getUserText() ) . ': ' .
 321+ htmlspecialchars( $revision->getComment() ) .
 322+ "</p>\n<hr />\n<div>" .
322323 nl2br( htmlspecialchars( $revision->getText() ) ) . "</div>";
323324 }
324325 return '';

Status & tagging log