aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-08-11 16:24:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-08-11 16:24:18 +0000
commitbe963ed93892659005f892767548ee4597e73fcb (patch)
treee6dfce79e80dd85cb3f12a9373807f5e841cdc1f /phpBB/includes/functions_messenger.php
parent96a30afcca3ebd832c9b3083bb5c9a9f2a2dc54b (diff)
downloadforums-be963ed93892659005f892767548ee4597e73fcb.tar
forums-be963ed93892659005f892767548ee4597e73fcb.tar.gz
forums-be963ed93892659005f892767548ee4597e73fcb.tar.bz2
forums-be963ed93892659005f892767548ee4597e73fcb.tar.xz
forums-be963ed93892659005f892767548ee4597e73fcb.zip
allow custom template path for email files
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9957 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 2255b3dcb5..212ae720cb 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -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');