mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
[ticket/11445] Add abstract class phpbb_notification_method_messenger_base.
PHPBB3-11445
This commit is contained in:
@@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
|
||||
*
|
||||
* @package notifications
|
||||
*/
|
||||
class phpbb_notification_method_jabber extends phpbb_notification_method_email
|
||||
class phpbb_notification_method_jabber extends phpbb_notification_method_messenger_base
|
||||
{
|
||||
/**
|
||||
* Get notification method name
|
||||
@@ -33,20 +33,6 @@ class phpbb_notification_method_jabber extends phpbb_notification_method_email
|
||||
return 'jabber';
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication)
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $notify_method = NOTIFY_IM;
|
||||
|
||||
/**
|
||||
* Base directory to prepend to the email template name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $email_template_base_dir = 'short/';
|
||||
|
||||
/**
|
||||
* Is this method available for the user?
|
||||
* This is checked on the notifications options
|
||||
@@ -72,6 +58,6 @@ class phpbb_notification_method_jabber extends phpbb_notification_method_email
|
||||
return;
|
||||
}
|
||||
|
||||
return parent::notify();
|
||||
return $this->notify_using_messenger(NOTIFY_IM, 'short/');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user