aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-12-16 02:22:17 +0100
committerAndreas Fischer <bantu@phpbb.com>2010-12-16 02:22:17 +0100
commit442fc61be77787c211650f21b2fb485f5e6ffcf0 (patch)
tree804ce33f487ab3f9d1ed19db203a91522d4dd184 /phpBB/viewtopic.php
parent8b9b1f118726e9fb088737129a02e9959ac1adc4 (diff)
parentb08e0d17728f8733a403834a8ffa85b01c16d805 (diff)
downloadforums-442fc61be77787c211650f21b2fb485f5e6ffcf0.tar
forums-442fc61be77787c211650f21b2fb485f5e6ffcf0.tar.gz
forums-442fc61be77787c211650f21b2fb485f5e6ffcf0.tar.bz2
forums-442fc61be77787c211650f21b2fb485f5e6ffcf0.tar.xz
forums-442fc61be77787c211650f21b2fb485f5e6ffcf0.zip
Merge branch 'feature/igorw/request-class' into develop
* feature/igorw/request-class: [feature/request-class] Convert some remaining cookies [feature/request-class] Adjust misleading comment [feature/request-class] Remove direct access to _REQUEST in acp_search [feature/request-class] Special case of direct access to _REQUEST
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 2c719b45d4..2673418eab 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -701,9 +701,9 @@ if (!empty($topic_data['poll_start']))
// Cookie based guest tracking ... I don't like this but hum ho
// it's oft requested. This relies on "nice" users who don't feel
// the need to delete cookies to mess with results.
- if (isset($_COOKIE[$config['cookie_name'] . '_poll_' . $topic_id]))
+ if ($request->is_set($config['cookie_name'] . '_poll_' . $topic_id, phpbb_request_interface::COOKIE))
{
- $cur_voted_id = explode(',', $_COOKIE[$config['cookie_name'] . '_poll_' . $topic_id]);
+ $cur_voted_id = explode(',', $request->variable($config['cookie_name'] . '_poll_' . $topic_id, '', true, phpbb_request_interface::COOKIE));
$cur_voted_id = array_map('intval', $cur_voted_id);
}
}