mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 02:25:18 +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;
|
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?
|
* Is this method available for the user?
|
||||||
* This is checked on the notifications options
|
* This is checked on the notifications options
|
||||||
@ -100,7 +107,7 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
|
|||||||
continue;
|
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']);
|
$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;
|
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?
|
* Is this method available for the user?
|
||||||
* This is checked on the notifications options
|
* This is checked on the notifications options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user