1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Messenger now also able to use a custom language path. (Bug #36545)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9450 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2009-04-17 09:08:34 +00:00
parent 0a139376ab
commit b8b578cd99
2 changed files with 4 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ class messenger
*/
function template($template_file, $template_lang = '')
{
global $config, $phpbb_root_path;
global $config, $phpbb_root_path, $user;
if (!trim($template_file))
{
@@ -187,7 +187,8 @@ class messenger
if (empty($this->tpl_msg[$template_lang . $template_file]))
{
$tpl_file = "{$phpbb_root_path}language/$template_lang/email/$template_file.txt";
$tpl_file = (!empty($user->lang_path)) ? $user->lang_path : $phpbb_root_path . 'language/';
$tpl_file .= $template_lang . "/email/$template_file.txt";
if (!file_exists($tpl_file))
{