diff --git a/Slash/Slash.pm b/Slash/Slash.pm index 52eb519b7..a5d5b72ff 100644 --- a/Slash/Slash.pm +++ b/Slash/Slash.pm @@ -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 @@ -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); } ######################################################## diff --git a/plugins/PollBooth/pollBooth.pl b/plugins/PollBooth/pollBooth.pl index eb1bdfd24..3aa732152 100755 --- a/plugins/PollBooth/pollBooth.pl +++ b/plugins/PollBooth/pollBooth.pl @@ -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}); diff --git a/themes/slashcode/htdocs/pollBooth.pl b/themes/slashcode/htdocs/pollBooth.pl index eb1bdfd24..3aa732152 100755 --- a/themes/slashcode/htdocs/pollBooth.pl +++ b/themes/slashcode/htdocs/pollBooth.pl @@ -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});