From 443b931b364be43af2dac7c35637d5f6752223ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dark=E2=9D=B6?= Date: Sun, 22 Mar 2020 01:45:56 +0530 Subject: [PATCH] [ticket/16411] Add vars to notification core events PHPBB3-16411 --- phpBB/includes/ucp/ucp_notifications.php | 4 ++++ phpBB/styles/prosilver/template/ucp_notifications.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php index b0eeb915ec..ccb118900a 100644 --- a/phpBB/includes/ucp/ucp_notifications.php +++ b/phpBB/includes/ucp/ucp_notifications.php @@ -70,6 +70,7 @@ class ucp_notifications * @var array type_data The notification type data * @var array method_data The notification method data * @var bool is_set_notify The notification is set or not + * @var array subscriptions The subscriptions data * * @since 3.2.10-RC1 */ @@ -77,6 +78,7 @@ class ucp_notifications 'type_data', 'method_data', 'is_set_notify', + 'subscriptions', ]; extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_submit_notification_is_set', compact($vars))); @@ -225,6 +227,7 @@ class ucp_notifications * @var array type_data The notification type data * @var array method_data The notification method data * @var array tpl_ary The template variables + * @var array subscriptions The subscriptions data * * @since 3.2.10-RC1 */ @@ -232,6 +235,7 @@ class ucp_notifications 'type_data', 'method_data', 'tpl_ary', + 'subscriptions', ]; extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_output_notification_types_modify_template_vars', compact($vars))); diff --git a/phpBB/styles/prosilver/template/ucp_notifications.html b/phpBB/styles/prosilver/template/ucp_notifications.html index 55e30477d2..1d0249abd1 100644 --- a/phpBB/styles/prosilver/template/ucp_notifications.html +++ b/phpBB/styles/prosilver/template/ucp_notifications.html @@ -31,7 +31,7 @@
   {notification_types.EXPLAIN} - checked="checked" disabled="disabled" /> + checked="checked" disabled="disabled" />