diff options
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/notification/method/email.php | 9 | ||||
-rw-r--r-- | phpBB/includes/notification/method/jabber.php | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/phpBB/includes/notification/method/email.php b/phpBB/includes/notification/method/email.php index a47284bc61..2ff30b177f 100644 --- a/phpBB/includes/notification/method/email.php +++ b/phpBB/includes/notification/method/email.php @@ -41,6 +41,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']); diff --git a/phpBB/includes/notification/method/jabber.php b/phpBB/includes/notification/method/jabber.php index fc43d8d4b9..e3eb571fbc 100644 --- a/phpBB/includes/notification/method/jabber.php +++ b/phpBB/includes/notification/method/jabber.php @@ -41,6 +41,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 */ |