From e57faf219274c3802fef3831be18f15961035b05 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 20 Jun 2003 17:43:03 +0000 Subject: [PATCH] - 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. --- includes/common.inc | 4 ++-- modules/poll.module | 3 +-- modules/poll/poll.module | 3 +-- modules/profile.module | 8 ++++---- modules/profile/profile.module | 8 ++++---- modules/taxonomy.module | 2 ++ modules/taxonomy/taxonomy.module | 2 ++ modules/user.module | 2 +- modules/user/user.module | 2 +- 9 files changed, 18 insertions(+), 16 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index ec534759f5cb..7e7e106bb7b3 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -873,8 +873,8 @@ function form_hidden($name, $value) { return "\n"; } -function form_submit($value) { - return "\n"; +function form_submit($value, $name = "op") { + return "\n"; } function form_weight($title = NULL, $name = "weight", $value = 0, $delta = 10, $description = 0, $extra = 0) { diff --git a/modules/poll.module b/modules/poll.module index 8ec52a5e2979..0313b62c8ffb 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 = "