diff options
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r-- | phpBB/includes/template.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index 3c765a03a2..d7de109602 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -68,16 +68,16 @@ class template { global $phpbb_root_path, $config, $user; - if (file_exists($phpbb_root_path . 'styles/templates/' . $user->theme['primary']['template_path'])) + if (file_exists($phpbb_root_path . 'styles/' . $user->theme['primary']['template_path'] . '/template')) { // $this->tpl = 'primary'; - $this->root = $phpbb_root_path . 'styles/templates/' . $user->theme['primary']['template_path']; + $this->root = $phpbb_root_path . 'styles/' . $user->theme['primary']['template_path']. '/template'; $this->cachepath = $phpbb_root_path . 'cache/tpl_' . $user->theme['primary']['template_path'] . '_'; } else { // $this->tpl = 'secondary'; - $this->root = $phpbb_root_path . 'styles/templates/' . $user->theme['secondary']['template_path']; + $this->root = $phpbb_root_path . 'styles/' . $user->theme['secondary']['template_path']. '/template'; $this->cachepath = $phpbb_root_path . 'cache/tpl_' . $user->theme['secondary']['template_path'] . '_'; } @@ -166,7 +166,7 @@ class template if (!file_exists($this->files[$handle])) { // $this->tpl = 'secondary'; - $this->files[$handle] = $phpbb_root_path . 'styles/templates/' . $user->theme['secondary']['template_path'] . '/' . $this->filename[$handle]; + $this->files[$handle] = $phpbb_root_path . 'styles/' . $user->theme['secondary']['template_path'] . '/template/' . $this->filename[$handle]; } $str = ''; |