X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/97d921ca676d51279b9fdfbaa7501fc8ebf8a027..6c546c8f3182668c6d21d578b789674894f18c39:/IkiWiki/Plugin/poll.pm
diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm
index 734fe487e..5a09e2087 100644
--- a/IkiWiki/Plugin/poll.pm
+++ b/IkiWiki/Plugin/poll.pm
@@ -69,8 +69,8 @@ sub preprocess (@) {
$ret.="\n";
$ret.="\n";
$ret.="\n";
- if (defined $params{postvote}) {
- $ret.="\n";
+ if (defined $params{postlink}) {
+ $ret.="\n";
}
if (defined $params{posttrail}) {
$ret.="\n";
@@ -119,8 +119,8 @@ sub sessioncgi ($$) {
}
my $postvote=urlto($page);
- if (defined $cgi->param('postvote') && length $cgi->param('postvote')) {
- $postvote=urlto(bestlink($page, $cgi->param('postvote')));
+ if (defined $cgi->param('postlink') && length $cgi->param('postlink')) {
+ $postvote=urlto(bestlink($page, $cgi->param('postlink')));
}
elsif (defined $cgi->param('posttrail') && length $cgi->param('posttrail')) {
my $trailname=bestlink($page, $cgi->param('posttrail'));