diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-11-26 13:23:50 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-11-26 13:23:50 -0400 |
commit | 4f0b10c13d8d85e6ad1818f5ada84477f43df43a (patch) | |
tree | 56e715c8e67fde8e894b905496ca4198ac8227ad /IkiWiki/Plugin/poll.pm | |
parent | 97d921ca676d51279b9fdfbaa7501fc8ebf8a027 (diff) | |
download | ikiwiki-4f0b10c13d8d85e6ad1818f5ada84477f43df43a.tar ikiwiki-4f0b10c13d8d85e6ad1818f5ada84477f43df43a.tar.gz |
rename postvote to postlink
This better explains what it contains, which is a wikilink to the page
to go to after posting the vote. And postlink is more consistent a name
with posttrail.
Diffstat (limited to 'IkiWiki/Plugin/poll.pm')
-rw-r--r-- | IkiWiki/Plugin/poll.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm index 734fe487e..5a09e2087 100644 --- a/IkiWiki/Plugin/poll.pm +++ b/IkiWiki/Plugin/poll.pm @@ -69,8 +69,8 @@ sub preprocess (@) { $ret.="<input type=\"hidden\" name=\"num\" value=\"$num\" />\n"; $ret.="<input type=\"hidden\" name=\"page\" value=\"$params{page}\" />\n"; $ret.="<input type=\"hidden\" name=\"choice\" value=\"$choice\" />\n"; - if (defined $params{postvote}) { - $ret.="<input type=\"hidden\" name=\"postvote\" value=\"".linkpage($params{postvote})."\" />\n"; + if (defined $params{postlink}) { + $ret.="<input type=\"hidden\" name=\"postlink\" value=\"".linkpage($params{postlink})."\" />\n"; } if (defined $params{posttrail}) { $ret.="<input type=\"hidden\" name=\"posttrail\" value=\"".linkpage($params{posttrail})."\" />\n"; @@ -119,8 +119,8 @@ sub sessioncgi ($$) { } my $postvote=urlto($page); - if (defined $cgi->param('postvote') && length $cgi->param('postvote')) { - $postvote=urlto(bestlink($page, $cgi->param('postvote'))); + if (defined $cgi->param('postlink') && length $cgi->param('postlink')) { + $postvote=urlto(bestlink($page, $cgi->param('postlink'))); } elsif (defined $cgi->param('posttrail') && length $cgi->param('posttrail')) { my $trailname=bestlink($page, $cgi->param('posttrail')); |