phpBB

Code Changes

File: phpbb/notification/method/email.php

  Unmodified   Added   Modified   Removed
Line 12Line 12
*/

namespace phpbb\notification\method;

*/

namespace phpbb\notification\method;

 

use phpbb\notification\type\type_interface;


/**
* Email notification method class


/**
* Email notification method class

Line 56Line 58
	/**
* Is this method available for the user?
* This is checked on the notifications options

	/**
* Is this method available for the user?
* This is checked on the notifications options

 
	*
* @param type_interface $notification_type An optional instance of a notification type. If provided, this
* method additionally checks if the type provides an email template.
* @return bool

	*/

	*/

	public function is_available()

	public function is_available(type_interface $notification_type = null)

	{

	{

		return $this->config['email_enable'] && $this->user->data['user_email'];

		return parent::is_available($notification_type) && $this->config['email_enable'] && $this->user->data['user_email'];

	}

/**

	}

/**