aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-12-27 22:45:27 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-12-27 22:45:27 -0500
commitc574e7b4220fb781030d42e80071fd6fab6a163a (patch)
tree0671b85c079a0922990437ea917258a9b1e598ff
parent38a088a433d53eadfe1a457460fa7b702bdbe64c (diff)
downloadikiwiki-c574e7b4220fb781030d42e80071fd6fab6a163a.tar
ikiwiki-c574e7b4220fb781030d42e80071fd6fab6a163a.tar.gz
Take advantage of having changed commentdate().
-rwxr-xr-xikiwiki-comment.in9
1 files changed, 1 insertions, 8 deletions
diff --git a/ikiwiki-comment.in b/ikiwiki-comment.in
index c742d7063..eb22d6c0d 100755
--- a/ikiwiki-comment.in
+++ b/ikiwiki-comment.in
@@ -31,7 +31,7 @@ sub main {
$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;
@@ -80,13 +80,6 @@ sub get_subject {
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{};