aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/poll.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-11-29 15:07:26 -0400
committerJoey Hess <joey@kitenet.net>2010-11-29 15:07:26 -0400
commit1182e9d0eea5d995b830c2b3ed73c5b5b95dec99 (patch)
treec90f585f81353e959a8cb6f23f152dc2ede57afe /IkiWiki/Plugin/poll.pm
parent340ac56729a6ac3c91ea93177627d9ec39fc7e78 (diff)
downloadikiwiki-1182e9d0eea5d995b830c2b3ed73c5b5b95dec99.tar
ikiwiki-1182e9d0eea5d995b830c2b3ed73c5b5b95dec99.tar.gz
use one-parameter form of urlto
Diffstat (limited to 'IkiWiki/Plugin/poll.pm')
-rw-r--r--IkiWiki/Plugin/poll.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm
index 27df104ab..2773486a6 100644
--- a/IkiWiki/Plugin/poll.pm
+++ b/IkiWiki/Plugin/poll.pm
@@ -103,7 +103,7 @@ sub sessioncgi ($$) {
my $oldchoice=$session->param($choice_param);
if (defined $oldchoice && $oldchoice eq $choice) {
# Same vote; no-op.
- IkiWiki::redirect($cgi, urlto($page, undef));
+ IkiWiki::redirect($cgi, urlto($page));
exit;
}
@@ -153,7 +153,7 @@ sub sessioncgi ($$) {
error($@) if $@;
my $cookie = CGI::Cookie->new(-name=> $session->name, -value=> $session->id);
print $cgi->redirect(-cookie => $cookie,
- -url => urlto($page, undef));
+ -url => urlto($page));
exit;
}
}