mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13455] Update calls to request_var()
PHPBB3-13455
This commit is contained in:
@@ -33,11 +33,11 @@ if (!$config['feed_enable'])
|
||||
// Start session
|
||||
$user->session_begin();
|
||||
|
||||
if (!empty($config['feed_http_auth']) && request_var('auth', '') == 'http')
|
||||
if (!empty($config['feed_http_auth']) && $request->variable('auth', '') == 'http')
|
||||
{
|
||||
phpbb_http_login(array(
|
||||
'auth_message' => 'Feed',
|
||||
'viewonline' => request_var('viewonline', true),
|
||||
'viewonline' => $request->variable('viewonline', true),
|
||||
));
|
||||
}
|
||||
|
||||
@@ -45,9 +45,9 @@ $auth->acl($user->data);
|
||||
$user->setup('viewtopic');
|
||||
|
||||
// Initial var setup
|
||||
$forum_id = request_var('f', 0);
|
||||
$topic_id = request_var('t', 0);
|
||||
$mode = request_var('mode', '');
|
||||
$forum_id = $request->variable('f', 0);
|
||||
$topic_id = $request->variable('t', 0);
|
||||
$mode = $request->variable('mode', '');
|
||||
|
||||
// We do not use a template, therefore we simply define the global template variables here
|
||||
$global_vars = $item_vars = array();
|
||||
@@ -162,7 +162,7 @@ if ($config['gzip_compress'])
|
||||
}
|
||||
|
||||
// IF debug extra is enabled and admin want to "explain" the page we need to set other headers...
|
||||
if (defined('DEBUG') && request_var('explain', 0) && $auth->acl_get('a_'))
|
||||
if (defined('DEBUG') && $request->variable('explain', 0) && $auth->acl_get('a_'))
|
||||
{
|
||||
header('Content-type: text/html; charset=UTF-8');
|
||||
header('Cache-Control: private, no-cache="set-cookie"');
|
||||
|
Reference in New Issue
Block a user