aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/locator.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-08-03 01:09:37 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-08-04 21:23:06 -0400
commit13536f2be5e9c26752a6c9c5db19892b3c8e5490 (patch)
tree353a67eba73c7bc7052af6ec546ed85374127fe9 /phpBB/includes/template/locator.php
parent05b71ca04e8584428d335512a199e8c71c53a74f (diff)
downloadforums-13536f2be5e9c26752a6c9c5db19892b3c8e5490.tar
forums-13536f2be5e9c26752a6c9c5db19892b3c8e5490.tar.gz
forums-13536f2be5e9c26752a6c9c5db19892b3c8e5490.tar.bz2
forums-13536f2be5e9c26752a6c9c5db19892b3c8e5490.tar.xz
forums-13536f2be5e9c26752a6c9c5db19892b3c8e5490.zip
[feature/template-engine] Add constructor to template locator.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template/locator.php')
-rw-r--r--phpBB/includes/template/locator.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/template/locator.php b/phpBB/includes/template/locator.php
index 961783e635..7d0b618be3 100644
--- a/phpBB/includes/template/locator.php
+++ b/phpBB/includes/template/locator.php
@@ -60,6 +60,14 @@ class phpbb_template_locator
private $orig_tpl_inherits_id;
+ private $user;
+
+ public function __construct($phpbb_root_path, $user)
+ {
+ $this->phpbb_root_path = $phpbb_root_path;
+ $this->user = $user;
+ }
+
/**
* Set template location.
* @param string $style_name Name of style from which templates are to be taken