phpBB

Code Changes

File: phpbb/notification/method/jabber.php

  Unmodified   Added   Modified   Removed
Line 12Line 12
*/

namespace phpbb\notification\method;

*/

namespace phpbb\notification\method;

 

use phpbb\notification\type\type_interface;


/**
* Jabber notification method class


/**
* Jabber 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->global_available() && $this->user->data['user_jabber']);

		return parent::is_available($notification_type) && $this->global_available() && $this->user->data['user_jabber'];

	}

/**

	}

/**