From: Aaron Schulz Date: Sun, 9 Mar 2008 02:35:09 +0000 (+0000) Subject: Forgot to add $isPublic to revComment too X-Git-Tag: 1.31.0-rc.0~49194 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=7796102f5cab84b7b9fe375ca59a48ab2024f1ac;p=lhc%2Fweb%2Fwiklou.git Forgot to add $isPublic to revComment too --- diff --git a/includes/Linker.php b/includes/Linker.php index 2b232c1e63..cc6d493313 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1124,14 +1124,16 @@ class Linker { * * @param Revision $rev * @param bool $local Whether section links should refer to local page + * @param $isPublic, show only if all users can see it * @return string HTML */ - function revComment( Revision $rev, $local = false ) { - if( $rev->userCan( Revision::DELETED_COMMENT ) ) { + function revComment( Revision $rev, $local = false, $isPublic = false ) { + if( $rev->isDeleted( Revision::DELETED_COMMENT ) && $isPublic ) { + $block = " " . wfMsgHtml( 'rev-deleted-comment' ) . ""; + } else if( $rev->userCan( Revision::DELETED_COMMENT ) ) { $block = $this->commentBlock( $rev->getRawComment(), $rev->getTitle(), $local ); } else { - $block = " " . - wfMsgHtml( 'rev-deleted-comment' ) . ""; + $block = " " . wfMsgHtml( 'rev-deleted-comment' ) . ""; } if( $rev->isDeleted( Revision::DELETED_COMMENT ) ) { return " $block";