diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-05-24 11:35:22 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-05-24 11:35:22 +0000 |
commit | bf3772bada72ca3f573e03cf6670b7d26cb1f858 (patch) | |
tree | 3a2dfb57ac87fcd0f35d005ca7cc6d596ca886ef | |
parent | 540fdfc0c62f772c26a847177a83b08c5a5c0840 (diff) | |
download | brdo-bf3772bada72ca3f573e03cf6670b7d26cb1f858.tar.gz brdo-bf3772bada72ca3f573e03cf6670b7d26cb1f858.tar.bz2 |
Hmmm for some reason the \r\n's in the poll output where being changed into <br>'s... is that because of the check_output() legacy functions inside the themes? In anycase, I removed em.
-rw-r--r-- | modules/poll.module | 4 | ||||
-rw-r--r-- | modules/poll/poll.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll.module b/modules/poll.module index dfe37ba4b..3282d21ea 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -119,7 +119,7 @@ function poll_view($node, $main = 0, $block = 0) { $output .= "<table cellspacing=\"1\" cellpadding=\"0\" width=\"100%\"><tr><td width=\"20%\" valign=\"middle\" align=\"left\">" . check_output($value) . "</td><td width=\"70%\">" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "</td><td width=\"10%\" align=\"right\">" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%</td></tr></table>"; } else { - $output .= (!$block ? "<br>" : "") . check_output($value) . "<br><table width=\"90%\" align=\"center\" cellspacing=\"1\" cellpadding=\"0\"><tr><td width=\"70%\" valign=\"middle\" align=\"left\">" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "</td><td align=\"right\">" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%</td></tr></table>\r\n"; + $output .= (!$block ? "<br>" : "") . check_output($value) . "<br><table width=\"90%\" align=\"center\" cellspacing=\"1\" cellpadding=\"0\"><tr><td width=\"70%\" valign=\"middle\" align=\"left\">" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "</td><td align=\"right\">" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%</td></tr></table>"; } } } @@ -137,7 +137,7 @@ function poll_view($node, $main = 0, $block = 0) { $output .= "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"left\">"; foreach ($node->choice as $key => $value) { if ($value) { - $output .= "<input type=\"radio\" name=\"chid\" value=\"" . $node->chid[$key] . "\"> " . check_output($value) . "<br>\r\n"; + $output .= "<input type=\"radio\" name=\"chid\" value=\"" . $node->chid[$key] . "\"> " . check_output($value) . "<br>"; } } $output .= "</td></tr></table>"; diff --git a/modules/poll/poll.module b/modules/poll/poll.module index dfe37ba4b..3282d21ea 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -119,7 +119,7 @@ function poll_view($node, $main = 0, $block = 0) { $output .= "<table cellspacing=\"1\" cellpadding=\"0\" width=\"100%\"><tr><td width=\"20%\" valign=\"middle\" align=\"left\">" . check_output($value) . "</td><td width=\"70%\">" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "</td><td width=\"10%\" align=\"right\">" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%</td></tr></table>"; } else { - $output .= (!$block ? "<br>" : "") . check_output($value) . "<br><table width=\"90%\" align=\"center\" cellspacing=\"1\" cellpadding=\"0\"><tr><td width=\"70%\" valign=\"middle\" align=\"left\">" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "</td><td align=\"right\">" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%</td></tr></table>\r\n"; + $output .= (!$block ? "<br>" : "") . check_output($value) . "<br><table width=\"90%\" align=\"center\" cellspacing=\"1\" cellpadding=\"0\"><tr><td width=\"70%\" valign=\"middle\" align=\"left\">" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "</td><td align=\"right\">" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%</td></tr></table>"; } } } @@ -137,7 +137,7 @@ function poll_view($node, $main = 0, $block = 0) { $output .= "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"left\">"; foreach ($node->choice as $key => $value) { if ($value) { - $output .= "<input type=\"radio\" name=\"chid\" value=\"" . $node->chid[$key] . "\"> " . check_output($value) . "<br>\r\n"; + $output .= "<input type=\"radio\" name=\"chid\" value=\"" . $node->chid[$key] . "\"> " . check_output($value) . "<br>"; } } $output .= "</td></tr></table>"; |