diff options
author | kasimi <mail@kasimi.net> | 2017-08-24 10:36:54 +0200 |
---|---|---|
committer | kasimi <mail@kasimi.net> | 2017-08-24 10:39:59 +0200 |
commit | ec2d983ab1864affc6fd5718fc2faede488301dd (patch) | |
tree | 5c9029ea1cd7bf21b446b6e255e62c33c450fcb0 /phpBB/phpbb/notification/manager.php | |
parent | 1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff) | |
download | forums-ec2d983ab1864affc6fd5718fc2faede488301dd.tar forums-ec2d983ab1864affc6fd5718fc2faede488301dd.tar.gz forums-ec2d983ab1864affc6fd5718fc2faede488301dd.tar.bz2 forums-ec2d983ab1864affc6fd5718fc2faede488301dd.tar.xz forums-ec2d983ab1864affc6fd5718fc2faede488301dd.zip |
[ticket/15328] Disable checkbox if notification method isn't supported
PHPBB3-15328
Diffstat (limited to 'phpBB/phpbb/notification/manager.php')
-rw-r--r-- | phpBB/phpbb/notification/manager.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php index 6923d96392..1cd7e5bc9a 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -475,9 +475,10 @@ class manager if ($type instanceof \phpbb\notification\type\type_interface && $type->is_available()) { $options = array_merge(array( - 'id' => $type->get_type(), - 'lang' => 'NOTIFICATION_TYPE_' . strtoupper($type->get_type()), - 'group' => 'NOTIFICATION_GROUP_MISCELLANEOUS', + 'type' => $type, + 'id' => $type->get_type(), + 'lang' => 'NOTIFICATION_TYPE_' . strtoupper($type->get_type()), + 'group' => 'NOTIFICATION_GROUP_MISCELLANEOUS', ), (($type::$notification_option !== false) ? $type::$notification_option : array())); $this->subscription_types[$options['group']][$options['id']] = $options; @@ -509,6 +510,7 @@ class manager foreach ($this->get_available_subscription_methods() as $method_name => $method) { $subscription_methods[$method_name] = array( + 'method' => $method, 'id' => $method->get_type(), 'lang' => str_replace('.', '_', strtoupper($method->get_type())), ); |