summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-06 18:22:21 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-06 18:22:21 +0000
commit2719ebde864c0cd41c95c21bf18a028707061011 (patch)
treed2bd9514b935a06d8808611d3a9cd75ad6efb169
parent7f95b768ffd5e3d46701ff685504dd5850e73f83 (diff)
downloadbrdo-2719ebde864c0cd41c95c21bf18a028707061011.tar.gz
brdo-2719ebde864c0cd41c95c21bf18a028707061011.tar.bz2
- Bugfix: fixed problem when register globals is turned off. Patch 0037.poll.register_globals.patch by Al.
(Can't we make the result URL look nicer?)
-rw-r--r--modules/poll.module4
-rw-r--r--modules/poll/poll.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll.module b/modules/poll.module
index e52d38b43..2dcb835ee 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -169,7 +169,7 @@ function poll_link($type, $node = 0, $main) {
poll_allowvotes($node);
if ($node->allowvotes == 1) {
- global $pollresults;
+ $pollresults = $_GET["pollresults"];
// Change the current URL: add/edit the value of pollresults[nid]
if ($pollresults[$node->nid]) {
@@ -333,7 +333,7 @@ function poll_view(&$node, $main = 0, $block = 0) {
** $pollvote[nid] - A user's vote
** $pollresults[nid] - When a user hasn't voted, he can choose to see the voting form or the results
*/
- global $pollresults;
+ $pollresults = $_GET["pollresults"];
// Make sure we have determined the 'allowvotes' flag
poll_allowvotes($node);
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index e52d38b43..2dcb835ee 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -169,7 +169,7 @@ function poll_link($type, $node = 0, $main) {
poll_allowvotes($node);
if ($node->allowvotes == 1) {
- global $pollresults;
+ $pollresults = $_GET["pollresults"];
// Change the current URL: add/edit the value of pollresults[nid]
if ($pollresults[$node->nid]) {
@@ -333,7 +333,7 @@ function poll_view(&$node, $main = 0, $block = 0) {
** $pollvote[nid] - A user's vote
** $pollresults[nid] - When a user hasn't voted, he can choose to see the voting form or the results
*/
- global $pollresults;
+ $pollresults = $_GET["pollresults"];
// Make sure we have determined the 'allowvotes' flag
poll_allowvotes($node);