X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/37cf511f06cd7a187d4b85c1cc4bf0abaaa7bd7d..67e778f461ed0f5da0a109573b57d9f1022bcf9e:/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";