aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-10-14 22:03:09 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-10-17 13:56:16 +0200
commitb08e0d17728f8733a403834a8ffa85b01c16d805 (patch)
treea7c18d7c7f4891b7ee82b8c016203a53a1e88cfc /phpBB/viewtopic.php
parentde5ef675ace0bf6cf047a5be6bea76fce6e95226 (diff)
downloadforums-b08e0d17728f8733a403834a8ffa85b01c16d805.tar
forums-b08e0d17728f8733a403834a8ffa85b01c16d805.tar.gz
forums-b08e0d17728f8733a403834a8ffa85b01c16d805.tar.bz2
forums-b08e0d17728f8733a403834a8ffa85b01c16d805.tar.xz
forums-b08e0d17728f8733a403834a8ffa85b01c16d805.zip
[feature/request-class] Convert some remaining cookies
Convert some remaining accesses to cookie to use the request class instead. Thanks to bantu for the note. PHPBB3-9716
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 fecd87bbc1..b8d816d02b 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);
}
}