From: Aaron Schulz Date: Mon, 6 Apr 2009 01:59:42 +0000 (+0000) Subject: Don't show '(comment removed)' for empty comments X-Git-Tag: 1.31.0-rc.0~42215 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=0119134b4c3d562e022f80593712d42b0bf4c912;p=lhc%2Fweb%2Fwiklou.git Don't show '(comment removed)' for empty comments --- diff --git a/includes/Linker.php b/includes/Linker.php index e916b040b0..b3c98f754c 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 = " " . wfMsgHtml( 'rev-deleted-comment' ) . ""; } else if( $rev->userCan( Revision::DELETED_COMMENT ) ) {