mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge branch '3.2.x'
This commit is contained in:
@@ -180,13 +180,13 @@ class ucp_notifications
|
||||
'GROUP_NAME' => $user->lang($group),
|
||||
));
|
||||
|
||||
foreach ($subscription_types as $type => $data)
|
||||
foreach ($subscription_types as $type => $type_data)
|
||||
{
|
||||
$template->assign_block_vars($block, array(
|
||||
'TYPE' => $type,
|
||||
|
||||
'NAME' => $user->lang($data['lang']),
|
||||
'EXPLAIN' => (isset($user->lang[$data['lang'] . '_EXPLAIN'])) ? $user->lang($data['lang'] . '_EXPLAIN') : '',
|
||||
'NAME' => $user->lang($type_data['lang']),
|
||||
'EXPLAIN' => (isset($user->lang[$type_data['lang'] . '_EXPLAIN'])) ? $user->lang($type_data['lang'] . '_EXPLAIN') : '',
|
||||
));
|
||||
|
||||
foreach ($notification_methods as $method => $method_data)
|
||||
@@ -196,6 +196,8 @@ class ucp_notifications
|
||||
|
||||
'NAME' => $user->lang($method_data['lang']),
|
||||
|
||||
'AVAILABLE' => $method_data['method']->is_available($type_data['type']),
|
||||
|
||||
'SUBSCRIBED' => (isset($subscriptions[$type]) && in_array($method_data['id'], $subscriptions[$type])) ? true : false,
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user