1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-18 10:16:16 +02:00

[ticket/11103] More work on the UCP Notifications page

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-26 22:39:12 -05:00
parent 9b8c48a31c
commit e66117409c
4 changed files with 175 additions and 3 deletions

View File

@@ -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;
}
/**