diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-12-18 20:01:08 +0000 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-12-20 17:34:55 +0000 |
commit | 9e889c39ed9971e31dc33f4dea73a91d6938b535 (patch) | |
tree | 1dbe54a2dad026e26299a86c3aeab7e52526f72f /IkiWiki | |
parent | 8ed94c0a18435f3a1934e19949153c7ccf8ec78a (diff) | |
download | ikiwiki-9e889c39ed9971e31dc33f4dea73a91d6938b535.tar ikiwiki-9e889c39ed9971e31dc33f4dea73a91d6938b535.tar.gz |
comments: Rename COMMENTURL to ADDCOMMENTURL to avoid confusion with COMMENTAUTHORURL
Also refactor page.tmpl to use if/else rather than unless/if.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index d095a00bd..4f3b76db3 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -548,9 +548,9 @@ sub pagetemplate (@) { } if ($shown && commentsopen($page)) { - my $commenturl = IkiWiki::cgiurl(do => 'comment', + my $addcommenturl = IkiWiki::cgiurl(do => 'comment', page => $page); - $template->param(commenturl => $commenturl); + $template->param(addcommenturl => $addcommenturl); } } |