aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/poll.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/poll.pm')
-rw-r--r--IkiWiki/Plugin/poll.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm
index 988f4c113..27df104ab 100644
--- a/IkiWiki/Plugin/poll.pm
+++ b/IkiWiki/Plugin/poll.pm
@@ -52,7 +52,7 @@ sub preprocess (@) {
foreach my $choice (@choices) {
if ($open && exists $config{cgiurl}) {
# use POST to avoid robots
- $ret.="<form method=\"POST\" action=\"$config{cgiurl}\">\n";
+ $ret.="<form method=\"POST\" action=\"".IkiWiki::cgiurl()."\">\n";
}
my $percent=$total > 0 ? int($choices{$choice} / $total * 100) : 0;
$ret.="<p>\n";