Skip to content

Commit

Permalink
Fix Slash::pollbooth to always return pollbooth data
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Mar 13, 2001
1 parent 84fa101 commit 06a191b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Slash/Slash.pm
Expand Up @@ -553,9 +553,7 @@ works with NO_TABLE).
=item Return value
Well, right now prints if NO_TABLE is true, and returns if
NO_TABLE is false. That's because if you don't want it in
a table, it is presumed you are going to do something with it.
Returns the pollbooth data.
=item Dependencies
Expand Down Expand Up @@ -585,7 +583,7 @@ sub pollbooth {
}, 1);

return $pollbooth if $no_table;
fancybox($constants->{fancyboxwidth}, 'Poll', $pollbooth, $center);
fancybox($constants->{fancyboxwidth}, 'Poll', $pollbooth, $center, 1);
}

########################################################
Expand Down
2 changes: 1 addition & 1 deletion plugins/PollBooth/pollBooth.pl
Expand Up @@ -32,7 +32,7 @@ sub main {
listpolls();

} elsif (! defined $form->{aid}) {
pollbooth($form->{qid}, 0, 1);
print pollbooth($form->{qid}, 0, 1);

} else {
my $vote = vote($form->{qid}, $form->{aid});
Expand Down
2 changes: 1 addition & 1 deletion themes/slashcode/htdocs/pollBooth.pl
Expand Up @@ -32,7 +32,7 @@ sub main {
listpolls();

} elsif (! defined $form->{aid}) {
pollbooth($form->{qid}, 0, 1);
print pollbooth($form->{qid}, 0, 1);

} else {
my $vote = vote($form->{qid}, $form->{aid});
Expand Down

0 comments on commit 06a191b

Please sign in to comment.