$format ||= 'mdwn';
$username ||= get_username();
$subject ||= get_subject($page, $dir);
- $date ||= get_date();
+ $date ||= IkiWiki::Plugin::comments::commentdate();
} else {
$format ||= undef;
die "must supply username" unless defined $username;
return "comment $comment_num";
}
-sub get_date {
- my $date = IkiWiki::Plugin::comments::commentdate();
- $date =~ s|^date=\\"||;
- $date =~ s|\\"$||;
- return $date;
-}
-
sub get_comment {
my ($format, $username, $subject, $date, $content) = @_;
$format = defined $format ? $format = " format=$format" : q{};