mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
allow custom template path for email files
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9957 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -173,7 +173,7 @@ class messenger
|
||||
/**
|
||||
* Set email template to use
|
||||
*/
|
||||
function template($template_file, $template_lang = '')
|
||||
function template($template_file, $template_lang = '', $template_path = '')
|
||||
{
|
||||
global $config, $phpbb_root_path, $user;
|
||||
|
||||
@@ -193,8 +193,11 @@ class messenger
|
||||
$this->tpl_msg[$template_lang . $template_file] = new template();
|
||||
$tpl = &$this->tpl_msg[$template_lang . $template_file];
|
||||
|
||||
$template_path = (!empty($user->lang_path)) ? $user->lang_path : $phpbb_root_path . 'language/';
|
||||
$template_path .= $template_lang . '/email';
|
||||
if (!$template_path)
|
||||
{
|
||||
$template_path = (!empty($user->lang_path)) ? $user->lang_path : $phpbb_root_path . 'language/';
|
||||
$template_path .= $template_lang . '/email';
|
||||
}
|
||||
|
||||
$tpl->set_custom_template($template_path, $template_lang . '_email');
|
||||
|
||||
|
Reference in New Issue
Block a user