X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4d4c15a7c6f3ee073bf6d8aaf9a9a8b0b4c7fb40..390f12a845e65e30ce3c189d62dc4ca8c637e3f0:/IkiWiki/Plugin/poll.pm diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm index 32756a571..3bd4af206 100644 --- a/IkiWiki/Plugin/poll.pm +++ b/IkiWiki/Plugin/poll.pm @@ -30,7 +30,7 @@ sub preprocess (@) { my $showtotal=IkiWiki::yesno($params{total}); my $showpercent=IkiWiki::yesno($params{percent}); my $expandable=IkiWiki::yesno($params{expandable}); - $pagenum{$params{page}}++; + my $num=++$pagenum{$params{page}}{$params{destpage}}; my %choices; my @choices; @@ -66,7 +66,7 @@ sub preprocess (@) { } if ($open && exists $config{cgiurl}) { $ret.="\n"; - $ret.="\n"; + $ret.="\n"; $ret.="\n"; $ret.="\n"; $ret.="\n"; @@ -81,7 +81,7 @@ sub preprocess (@) { $ret.="

\n"; $ret.="

\n"; $ret.="\n"; - $ret.="\n"; + $ret.="\n"; $ret.="\n"; $ret.=gettext("Write in").": \n"; $ret.="\n";