aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-12-27 22:27:12 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-12-27 22:38:18 -0500
commit38a088a433d53eadfe1a457460fa7b702bdbe64c (patch)
tree43af1742265995dbf5dee54caf48c3906c130b02 /IkiWiki
parent47954c09ee9c200548824371a896da8bbda0443b (diff)
downloadikiwiki-38a088a433d53eadfe1a457460fa7b702bdbe64c.tar
ikiwiki-38a088a433d53eadfe1a457460fa7b702bdbe64c.tar.gz
ikiwiki-comment: optionally override parameters.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index d7666c852..ca497c75a 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -507,7 +507,7 @@ sub editcomment ($$) {
$subject = "comment ".(num_comments($page, $config{srcdir}) + 1);
}
$content .= " subject=\"$subject\"\n";
- $content .= " " . commentdate() . "\n";
+ $content .= " date=\"" . commentdate() . "\"\n";
my $editcontent = $form->field('editcontent');
$editcontent="" if ! defined $editcontent;
@@ -636,7 +636,7 @@ sub editcomment ($$) {
}
sub commentdate () {
- "date=\"" . strftime_utf8('%Y-%m-%dT%H:%M:%SZ', gmtime) . "\"";
+ strftime_utf8('%Y-%m-%dT%H:%M:%SZ', gmtime);
}
sub getavatar ($) {