summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-20 17:43:03 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-20 17:43:03 +0000
commite57faf219274c3802fef3831be18f15961035b05 (patch)
tree9ab269050888eed8d42e9a2864c969732daab4a5 /modules/poll.module
parent25081b2103d5a758876adc12ea097faabe153791 (diff)
downloadbrdo-e57faf219274c3802fef3831be18f15961035b05.tar.gz
brdo-e57faf219274c3802fef3831be18f15961035b05.tar.bz2
- Bugfix: fixed problem with changing themes. Didn't apply Al's patch as
the fix was somewhat simpler. Fixes bug #2003. - Bugfix: fixed problem with voting on certain poll pages. Patch #37 by Al. - Improvement: removed stupid descriptions from profile module.
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/poll.module b/modules/poll.module
index 8ec52a5e2..0313b62c8 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -220,7 +220,6 @@ function poll_node($field) {
function poll_page() {
-
theme("header");
$result = db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM node n LEFT JOIN poll p ON n.nid=p.nid LEFT JOIN poll_choices c ON n.nid=c.nid WHERE type = 'poll' AND status = '1' AND moderate = '0' GROUP BY n.nid, n.title, p.active, n.created ORDER BY n.created DESC");
$output = "<ul>";
@@ -269,7 +268,7 @@ function poll_view_voting(&$node, $main, $block, $links) {
}
}
}
- $output .= "</div>". form_submit(t("Vote")) ."</div>";
+ $output .= "</div>". form_submit(t("Vote"), "vote") ."</div>";
$output .= $block ? "<div class=\"links\">". theme("links", $links) ."</div>" : "";
$output .= "</form></div>";