From 951b553a9887df92d93ecc42e7e83ca568e26aae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 Nov 2003 23:27:22 +0000 Subject: - Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX. --- modules/poll/poll.module | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/poll/poll.module') diff --git a/modules/poll/poll.module b/modules/poll/poll.module index b4bd980ce..e2b7085e9 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -87,12 +87,12 @@ function poll_validate(&$node) { } if ($node->chvotes[$i] < 0) { - $error["chvotes][$i"] = theme("theme_error", t("Negative values are not allowed.")); + $error["chvotes][$i"] = theme("error", t("Negative values are not allowed.")); } } if ($actualchoices < 2) { - $error["choice][0"] = theme("theme_error", t("You must fill in at least two choices.")); + $error["choice][0"] = theme("error", t("You must fill in at least two choices.")); } } @@ -247,15 +247,15 @@ function poll_node($field) { function poll_page() { - theme("header"); + print theme("header"); $result = db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM {node} n INNER JOIN {poll} p ON n.nid=p.nid INNER 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 = ""; - theme("box", t("Polls"), $output); - theme("footer"); + print theme("box", t("Polls"), $output); + print theme("footer"); } function poll_perm() { @@ -383,7 +383,7 @@ function poll_view(&$node, $main = 0, $block = 0) { // We also use poll_view() for the side-block if (!$block) { - theme("node", $node, $main); + print theme("node", $node, $main); } } -- cgit v1.2.3