bugfix
parent
42ab1bf185
commit
278ea6e037
|
@ -108,7 +108,7 @@ sub cgi ($) { #{{{
|
||||||
if (--$num == 0) {
|
if (--$num == 0) {
|
||||||
$params=~s/(^|\s+)(\d+)\s+"?\Q$choice\E"?(\s+|$)/$1.($2+1)." \"$choice\"".$3/se;
|
$params=~s/(^|\s+)(\d+)\s+"?\Q$choice\E"?(\s+|$)/$1.($2+1)." \"$choice\"".$3/se;
|
||||||
if (defined $oldchoice) {
|
if (defined $oldchoice) {
|
||||||
$params=~s/(^|\s+)(\d+)\s+"?\Q$oldchoice\E"?(\s+|$)/$1.($2-1)." \"$oldchoice\"".$3/se;
|
$params=~s/(^|\s+)(\d+)\s+"?\Q$oldchoice\E"?(\s+|$)/$1.($2-1 >=0 ? $2-1 : 0))." \"$oldchoice\"".$3/se;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "[[poll $params]]";
|
return "[[poll $params]]";
|
||||||
|
|
|
@ -10,6 +10,6 @@ log back in, try out the OpenID signup process if you don't already have an
|
||||||
OpenID, and see how OpenID works for you. And let me know your feelings about
|
OpenID, and see how OpenID works for you. And let me know your feelings about
|
||||||
making such a switch.
|
making such a switch.
|
||||||
|
|
||||||
[[poll -1 "Accept only OpenID for logins" 1 "Accept only password logins" 0 "Accept both"]]
|
[[poll 0 "Accept only OpenID for logins" 1 "Accept only password logins" 0 "Accept both"]]
|
||||||
|
|
||||||
--[[Joey]]
|
--[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue