mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
96a30afcca
commit
be963ed938
1 changed files with 6 additions and 3 deletions
|
@ -173,7 +173,7 @@ class messenger
|
||||||
/**
|
/**
|
||||||
* Set email template to use
|
* 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;
|
global $config, $phpbb_root_path, $user;
|
||||||
|
|
||||||
|
@ -193,8 +193,11 @@ class messenger
|
||||||
$this->tpl_msg[$template_lang . $template_file] = new template();
|
$this->tpl_msg[$template_lang . $template_file] = new template();
|
||||||
$tpl = &$this->tpl_msg[$template_lang . $template_file];
|
$tpl = &$this->tpl_msg[$template_lang . $template_file];
|
||||||
|
|
||||||
$template_path = (!empty($user->lang_path)) ? $user->lang_path : $phpbb_root_path . 'language/';
|
if (!$template_path)
|
||||||
$template_path .= $template_lang . '/email';
|
{
|
||||||
|
$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');
|
$tpl->set_custom_template($template_path, $template_lang . '_email');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue