summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/poll.module b/modules/poll.module
index 533a9b5e7..dfe37ba4b 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -113,7 +113,6 @@ function poll_view($node, $main = 0, $block = 0) {
$node->totalvotes = max(1, $node->totalvotes);
- if (!$block) $output .= "<small>Posted by " . format_username($node->userid) . " on " . format_date($node->timestamp, "large") . "</small><br>\r\n";
foreach ($node->choice as $key => $value) {
if ($value) {
if ($main) {
@@ -135,7 +134,6 @@ function poll_view($node, $main = 0, $block = 0) {
$node->totalvotes = max(1, $node->totalvotes);
- if (!$block) $output .= "<small>Posted by " . format_username($node->userid) . " on " . format_date($node->timestamp, "large") . "</small><br><br>\r\n";
$output .= "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"left\">";
foreach ($node->choice as $key => $value) {
if ($value) {
@@ -147,7 +145,11 @@ function poll_view($node, $main = 0, $block = 0) {
$output = form($REQUEST_URI, $output);
}
- if (!$block) $theme->box($title, $output);
+
+ if (!$block) {
+ $node->body = $output;
+ $theme->node($node, 1);
+ }
return array("title" => $title, "content" => $output);
}