phpBB

Code Changes

File: phpbb/notification/manager.php

  Unmodified   Added   Modified   Removed
Line 339Line 339
			}
}


			}
}


		if (!sizeof($notify_users))

		if (!count($notify_users))

		{
return;
}

		{
return;
}

Line 475Line 475
				if ($type instanceof \phpbb\notification\type\type_interface && $type->is_available())
{
$options = array_merge(array(

				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;

					), (($type::$notification_option !== false) ? $type::$notification_option : array()));

$this->subscription_types[$options['group']][$options['id']] = $options;

Line 509Line 510
		foreach ($this->get_available_subscription_methods() as $method_name => $method)
{
$subscription_methods[$method_name] = array(

		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())),
);

				'id'		=> $method->get_type(),
'lang' => str_replace('.', '_', strtoupper($method->get_type())),
);