diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-20 15:11:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-20 15:11:41 +0000 |
commit | 00a62647bc7af43e15de61cd47801b475be4bd9c (patch) | |
tree | 901f13ba6ece9db0f7301e9e90c7ea08b71077fb /modules/poll | |
parent | 2fbc7fcf27b34445b7d0714f22a6e3e7f52d2389 (diff) | |
download | brdo-00a62647bc7af43e15de61cd47801b475be4bd9c.tar.gz brdo-00a62647bc7af43e15de61cd47801b475be4bd9c.tar.bz2 |
- Committed Nick's _content improvements.
Diffstat (limited to 'modules/poll')
-rw-r--r-- | modules/poll/poll.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 79a1a9704..ab8fbe9ea 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -54,7 +54,7 @@ function poll_block($op = "list", $delta = 0) { $poll = node_load(array("type" => "poll", "created" => $timestamp, "moderate" => "0", "status" => "1")); if ($poll->nid) { // Poll_view dumps the output into $poll->body - poll_view($poll, 1, 0, 1); + poll_view($poll, 1, 1); } } $block["subject"] = t("Poll: %t", array("%t" => $poll->title)); @@ -325,7 +325,7 @@ function poll_view_processvote(&$node) { } } -function poll_view(&$node, $main = 0, $return = 0, $block = 0) { +function poll_view(&$node, $main = 0, $block = 0) { global $user; /* @@ -361,7 +361,7 @@ function poll_view(&$node, $main = 0, $return = 0, $block = 0) { // We also use poll_view() for the side-block if (!$block) { - return $node; + theme("node", $node, $main); } } |