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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user