mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 15:35:11 +02:00
[ticket/11103] Use $request->variable rather than request_var
PHPBB3-11103
This commit is contained in:
parent
6b7443adac
commit
2227ceab8b
@ -26,8 +26,8 @@ class ucp_notifications
|
||||
|
||||
add_form_key('ucp_notification');
|
||||
|
||||
$start = request_var('start', 0);
|
||||
$form_time = min(request_var('form_time', 0), time());
|
||||
$start = $request->variable('start', 0);
|
||||
$form_time = min($request->variable('form_time', 0), time());
|
||||
|
||||
switch ($mode)
|
||||
{
|
||||
@ -87,7 +87,7 @@ class ucp_notifications
|
||||
case 'notification_list':
|
||||
default:
|
||||
// Mark all items read
|
||||
if (request_var('mark', '') == 'all' && (confirm_box(true) || check_link_hash(request_var('token', ''), 'mark_all_notifications_read')))
|
||||
if ($request->variable('mark', '') == 'all' && (confirm_box(true) || check_link_hash($request->variable('token', ''), 'mark_all_notifications_read')))
|
||||
{
|
||||
if (confirm_box(true))
|
||||
{
|
||||
@ -114,7 +114,7 @@ class ucp_notifications
|
||||
trigger_error('FORM_INVALID');
|
||||
}
|
||||
|
||||
$mark_read = request_var('mark', array(0));
|
||||
$mark_read = $request->variable('mark', array(0));
|
||||
|
||||
if (!empty($mark_read))
|
||||
{
|
||||
|
@ -25,7 +25,7 @@ $auth->acl($user->data);
|
||||
$user->setup('viewforum');
|
||||
|
||||
// Mark notifications read
|
||||
if (($mark_notification = request_var('mark_notification', 0)))
|
||||
if (($mark_notification = $request->variable('mark_notification', 0)))
|
||||
{
|
||||
$notification = $phpbb_notifications->load_notifications(array(
|
||||
'notification_id' => $mark_notification
|
||||
@ -37,7 +37,7 @@ if (($mark_notification = request_var('mark_notification', 0)))
|
||||
|
||||
$notification->mark_read();
|
||||
|
||||
if (($redirect = request_var('redirect', '')))
|
||||
if (($redirect = $request->variable('redirect', '')))
|
||||
{
|
||||
redirect(append_sid($phpbb_root_path . $redirect));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user