mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 10:05:19 +02:00
[ticket/11103] Make jabber use short/ email template files
PHPBB3-11103
This commit is contained in:
parent
985d234a29
commit
7948aaa78e
@ -40,6 +40,13 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
|
||||
*/
|
||||
protected $notify_method = NOTIFY_EMAIL;
|
||||
|
||||
/**
|
||||
* Base directory to prepend to the email template name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $email_template_base_dir = '';
|
||||
|
||||
/**
|
||||
* Is this method available for the user?
|
||||
* This is checked on the notifications options
|
||||
@ -100,7 +107,7 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
|
||||
continue;
|
||||
}
|
||||
|
||||
$messenger->template($notification->get_email_template(), $user['user_lang']);
|
||||
$messenger->template($this->email_template_base_dir . $notification->get_email_template(), $user['user_lang']);
|
||||
|
||||
$messenger->to($user['user_email'], $user['username']);
|
||||
|
||||
|
@ -40,6 +40,13 @@ class phpbb_notification_method_jabber extends phpbb_notification_method_email
|
||||
*/
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user