rev_deleted log: only show colon in log message if a comment is provided.
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 6 Apr 2008 07:14:30 +0000 (07:14 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 6 Apr 2008 07:14:30 +0000 (07:14 +0000)
includes/SpecialRevisiondelete.php

index 9e4fd15..701f1de 100644 (file)
@@ -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;
 
        }