Don't show '(comment removed)' for empty comments
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 6 Apr 2009 01:59:42 +0000 (01:59 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 6 Apr 2009 01:59:42 +0000 (01:59 +0000)
includes/Linker.php

index e916b04..b3c98f7 100644 (file)
@@ -1385,6 +1385,7 @@ class Linker {
         * @return string HTML
         */
        function revComment( Revision $rev, $local = false, $isPublic = false ) {
+               if( $rev->getComment() == "" ) return "";
                if( $rev->isDeleted( Revision::DELETED_COMMENT ) && $isPublic ) {
                        $block = " <span class=\"comment\">" . wfMsgHtml( 'rev-deleted-comment' ) . "</span>";
                } else if( $rev->userCan( Revision::DELETED_COMMENT ) ) {