From: Daniel Cannon Date: Sun, 6 Apr 2008 07:14:30 +0000 (+0000) Subject: rev_deleted log: only show colon in log message if a comment is provided. X-Git-Tag: 1.31.0-rc.0~48594 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=78ea5f50b6b58d986da43a8c3b7e199a3f5231df;p=lhc%2Fweb%2Fwiklou.git rev_deleted log: only show colon in log message if a comment is provided. --- diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index 9e4fd1596a..701f1de88a 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -1412,7 +1412,12 @@ class RevisionDeleter { $s = $changes[2][0]; } - return wfMsg ( 'revdelete-log-message', $s, $count, $comment ); + $ret = wfMsg ( 'revdelete-log-message', $s, $count ); + + if ( $comment ) + $ret .= ": $comment"; + + return $ret; }