aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/poll.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-11-23 00:12:17 +0000
committerSimon McVittie <smcv@debian.org>2010-11-23 00:12:17 +0000
commit296e5cb2fd3690e998b3824d54d317933c595873 (patch)
treec810ddde04f4d6d262e6741f73081a45796f77e0 /IkiWiki/Plugin/poll.pm
parent78c595736ef6903ad8e7bab232875474aedfd328 (diff)
downloadikiwiki-296e5cb2fd3690e998b3824d54d317933c595873.tar
ikiwiki-296e5cb2fd3690e998b3824d54d317933c595873.tar.gz
Use local paths for the CGI URL
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";