http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62667
Revision: 62667 Author: juliano Date: 2010-02-18 00:37:13 +0000 (Thu, 18 Feb 2010) Log Message: ----------- Fix comment preview. Modified Paths: -------------- trunk/extensions/Wikilog/WikilogComment.php Modified: trunk/extensions/Wikilog/WikilogComment.php =================================================================== --- trunk/extensions/Wikilog/WikilogComment.php 2010-02-18 00:36:49 UTC (rev 62666) +++ trunk/extensions/Wikilog/WikilogComment.php 2010-02-18 00:37:13 UTC (rev 62667) @@ -608,14 +608,17 @@ $params = $this->getCommentMsgParams( $comment ); $html = $this->formatCommentHeader( $comment, $params ); - if ( $comment->mCommentRev ) { + if ( $comment->mID && $comment->mCommentRev ) { list( $article, $parserOutput ) = WikilogUtils::parsedArticle( $comment->mCommentTitle ); $text = $parserOutput->getText(); - if ( $text ) { - $html .= WikilogUtils::wrapDiv( 'wl-comment-text', $text ); - } + } else { + $text = $comment->getText(); } + if ( $text ) { + $html .= WikilogUtils::wrapDiv( 'wl-comment-text', $text ); + } + $html .= $this->formatCommentFooter( $comment, $params ); $html .= $this->getCommentToolLinks( $comment ); } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs