diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-26 22:39:12 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-26 22:39:12 -0500 |
commit | e66117409c68242832f76cdb456d16c40573639e (patch) | |
tree | 7b7a72330f8fd963f67ff77450e8c04145d3ac67 /phpBB/includes/notifications | |
parent | 9b8c48a31c2310ae1c1e358b3e13a250092aa1ac (diff) | |
download | forums-e66117409c68242832f76cdb456d16c40573639e.tar forums-e66117409c68242832f76cdb456d16c40573639e.tar.gz forums-e66117409c68242832f76cdb456d16c40573639e.tar.bz2 forums-e66117409c68242832f76cdb456d16c40573639e.tar.xz forums-e66117409c68242832f76cdb456d16c40573639e.zip |
[ticket/11103] More work on the UCP Notifications page
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications')
-rw-r--r-- | phpBB/includes/notifications/service.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/phpBB/includes/notifications/service.php b/phpBB/includes/notifications/service.php index a174193491..3160864f37 100644 --- a/phpBB/includes/notifications/service.php +++ b/phpBB/includes/notifications/service.php @@ -473,7 +473,26 @@ class phpbb_notifications_service */ public function get_subscription_methods() { - return array_keys($this->get_subscription_files('notifications/method/')); + $subscription_methods = array(); + + foreach ($this->get_subscription_files('notifications/method/') as $method_name => $file) + { + $class_name = 'phpbb_notifications_method_' . $method_name; + + if (!class_exists($class_name)) + { + include($file); + } + + $method = new $class_name($this->phpbb_container); + + if ($method->is_available()) + { + $subscription_methods[] = $method_name; + } + } + + return $subscription_methods; } /** |