diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-08-09 23:28:40 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-08-09 23:28:40 -0400 |
| commit | acb767f14d6300ebff793f87b1a62ebbb4bde82a (patch) | |
| tree | 0715813b866c3635ec637d6779a019601c136bfa /phpBB/includes/template | |
| parent | 66232035aa1e0d81d5c8f141b45521998cd7207e (diff) | |
| download | forums-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/template')
| -rw-r--r-- | phpBB/includes/template/template.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/template/template.php b/phpBB/includes/template/template.php index 80052ba59a..0409b66da6 100644 --- a/phpBB/includes/template/template.php +++ b/phpBB/includes/template/template.php @@ -72,14 +72,15 @@ class phpbb_template * * @param string $phpbb_root_path phpBB root path * @param user $user current user + * @param phpbb_template_locator $locator template locator */ - public function __construct($phpbb_root_path, $phpEx, $config, $user) + public function __construct($phpbb_root_path, $phpEx, $config, $user, phpbb_template_locator $locator) { $this->phpbb_root_path = $phpbb_root_path; $this->phpEx = $phpEx; $this->config = $config; $this->user = $user; - $this->locator = new phpbb_template_locator(); + $this->locator = $locator; } /** |
