aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-08-09 23:28:40 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-08-09 23:28:40 -0400
commitacb767f14d6300ebff793f87b1a62ebbb4bde82a (patch)
tree0715813b866c3635ec637d6779a019601c136bfa /phpBB/includes/functions_messenger.php
parent66232035aa1e0d81d5c8f141b45521998cd7207e (diff)
downloadforums-acb767f14d6300ebff793f87b1a62ebbb4bde82a.tar
forums-acb767f14d6300ebff793f87b1a62ebbb4bde82a.tar.gz
forums-acb767f14d6300ebff793f87b1a62ebbb4bde82a.tar.bz2
forums-acb767f14d6300ebff793f87b1a62ebbb4bde82a.tar.xz
forums-acb767f14d6300ebff793f87b1a62ebbb4bde82a.zip
[feature/template-engine] Dependency inject locator into template.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index da7e7cb9e4..507f523866 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -193,7 +193,8 @@ class messenger
// tpl_msg now holds a template object we can use to parse the template file
if (!isset($this->tpl_msg[$template_lang . $template_file]))
{
- $this->tpl_msg[$template_lang . $template_file] = new phpbb_template($phpbb_root_path, $phpEx, $config, $user);
+ $template_locator = new phpbb_template_locator();
+ $this->tpl_msg[$template_lang . $template_file] = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $template_locator);
$tpl = &$this->tpl_msg[$template_lang . $template_file];
$fallback_template_path = false;