[ŧicket/11896] Set form_time with time() when marking all notifications read

form_time is only set if is passed via the form. Since the mark notifications
read link does not use the form, it will default to 0 causing the mark
notifications logic to only mark notifications read if their time is smaller
or equal to 0. This patch will change ucp_notifications to correctly set
form_time for the confirm_box.

PHPBB3-11896
This commit is contained in:
Marc Alexander 2013-11-09 20:28:24 +01:00
parent 3b68540cee
commit 252b5fe4f7

View file

@ -103,7 +103,7 @@ class ucp_notifications
{ {
confirm_box(false, 'NOTIFICATIONS_MARK_ALL_READ', build_hidden_fields(array( confirm_box(false, 'NOTIFICATIONS_MARK_ALL_READ', build_hidden_fields(array(
'mark' => 'all', 'mark' => 'all',
'form_time' => $form_time, 'form_time' => time(),
))); )));
} }
} }