aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/user.php
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2014-04-07 01:38:24 -0700
committerMatt Friedman <maf675@gmail.com>2014-04-07 01:38:24 -0700
commita5940ede5bc8a7594b84fd4b489ada2110ecbdcc (patch)
tree2b27698b5142e435077a6c8f0fbfce6deb747841 /phpBB/phpbb/user.php
parent41b0b8c5f92c77e406c8fc96c810749cf99b4409 (diff)
downloadforums-a5940ede5bc8a7594b84fd4b489ada2110ecbdcc.tar
forums-a5940ede5bc8a7594b84fd4b489ada2110ecbdcc.tar.gz
forums-a5940ede5bc8a7594b84fd4b489ada2110ecbdcc.tar.bz2
forums-a5940ede5bc8a7594b84fd4b489ada2110ecbdcc.tar.xz
forums-a5940ede5bc8a7594b84fd4b489ada2110ecbdcc.zip
[ticket/12254] Stop using deprecated request_var in user class
PHPBB3-12254
Diffstat (limited to 'phpBB/phpbb/user.php')
-rw-r--r--phpBB/phpbb/user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php
index fceeb53946..d9ff75b997 100644
--- a/phpBB/phpbb/user.php
+++ b/phpBB/phpbb/user.php
@@ -69,7 +69,7 @@ class user extends \phpbb\session
*/
function setup($lang_set = false, $style_id = false)
{
- global $db, $template, $config, $auth, $phpEx, $phpbb_root_path, $cache;
+ global $db, $request, $template, $config, $auth, $phpEx, $phpbb_root_path, $cache;
global $phpbb_dispatcher;
if ($this->data['user_id'] != ANONYMOUS)
@@ -80,7 +80,7 @@ class user extends \phpbb\session
}
else
{
- $change_lang = request_var('change_lang', '');
+ $change_lang = $request->variable('change_lang', '');
if ($change_lang)
{
global $SID, $_EXTRA_URL;
@@ -196,7 +196,7 @@ class user extends \phpbb\session
}
unset($lang_set_ext);
- $style_request = request_var('style', 0);
+ $style_request = $request->variable('style', 0);
if ($style_request && (!$config['override_user_style'] || $auth->acl_get('a_styles')) && !defined('ADMIN_START'))
{
global $SID, $_EXTRA_URL;