mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
[ticket/12254] Stop using deprecated request_var in user class
PHPBB3-12254
This commit is contained in:
parent
41b0b8c5f9
commit
a5940ede5b
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ class user extends \phpbb\session
|
||||||
*/
|
*/
|
||||||
function setup($lang_set = false, $style_id = false)
|
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;
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
if ($this->data['user_id'] != ANONYMOUS)
|
if ($this->data['user_id'] != ANONYMOUS)
|
||||||
|
@ -80,7 +80,7 @@ class user extends \phpbb\session
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$change_lang = request_var('change_lang', '');
|
$change_lang = $request->variable('change_lang', '');
|
||||||
if ($change_lang)
|
if ($change_lang)
|
||||||
{
|
{
|
||||||
global $SID, $_EXTRA_URL;
|
global $SID, $_EXTRA_URL;
|
||||||
|
@ -196,7 +196,7 @@ class user extends \phpbb\session
|
||||||
}
|
}
|
||||||
unset($lang_set_ext);
|
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'))
|
if ($style_request && (!$config['override_user_style'] || $auth->acl_get('a_styles')) && !defined('ADMIN_START'))
|
||||||
{
|
{
|
||||||
global $SID, $_EXTRA_URL;
|
global $SID, $_EXTRA_URL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue