aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/path_provider.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template/path_provider.php')
-rw-r--r--phpBB/includes/template/path_provider.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/template/path_provider.php b/phpBB/includes/template/path_provider.php
index e6c8b34e15..80e3ef87d7 100644
--- a/phpBB/includes/template/path_provider.php
+++ b/phpBB/includes/template/path_provider.php
@@ -44,9 +44,11 @@ class phpbb_template_path_provider implements IteratorAggregate, phpbb_template_
* The first element is the main template.
* If the path is false, it will be generated from
* the supplied name.
+ * @param string $style_root_path The root directory for styles identified
+ * by name only.
* @return null
*/
- public function set_templates(array $templates)
+ public function set_templates(array $templates, $style_root_path)
{
$this->paths;
@@ -54,7 +56,7 @@ class phpbb_template_path_provider implements IteratorAggregate, phpbb_template_
{
if (!$path)
{
- $path = $this->template_root_for_style($name);
+ $path = $style_root_path . $this->template_root_for_style($name);
}
$this->paths[] = $path;