diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-10-14 22:03:09 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2010-10-17 13:56:16 +0200 |
commit | b08e0d17728f8733a403834a8ffa85b01c16d805 (patch) | |
tree | a7c18d7c7f4891b7ee82b8c016203a53a1e88cfc /phpBB/includes/functions_display.php | |
parent | de5ef675ace0bf6cf047a5be6bea76fce6e95226 (diff) | |
download | forums-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/includes/functions_display.php')
-rw-r--r-- | phpBB/includes/functions_display.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 7f9070740f..fc1f133214 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -23,6 +23,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod { global $db, $auth, $user, $template; global $phpbb_root_path, $phpEx, $config; + global $request; $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array(); $parent_id = $visible_forums = 0; @@ -69,7 +70,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod } else if ($config['load_anon_lastread'] || $user->data['is_registered']) { - $tracking_topics = (isset($_COOKIE[$config['cookie_name'] . '_track'])) ? ((STRIP) ? stripslashes($_COOKIE[$config['cookie_name'] . '_track']) : $_COOKIE[$config['cookie_name'] . '_track']) : ''; + $tracking_topics = $request->variable($config['cookie_name'] . '_track', '', true, phpbb_request_interface::COOKIE); $tracking_topics = ($tracking_topics) ? tracking_unserialize($tracking_topics) : array(); if (!$user->data['is_registered']) |