mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[feature/template-engine] Add constructor to template locator.
PHPBB3-9726
This commit is contained in:
@@ -60,6 +60,14 @@ class phpbb_template_locator
|
|||||||
|
|
||||||
private $orig_tpl_inherits_id;
|
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.
|
* Set template location.
|
||||||
* @param string $style_name Name of style from which templates are to be taken
|
* @param string $style_name Name of style from which templates are to be taken
|
||||||
|
@@ -81,7 +81,7 @@ class phpbb_template
|
|||||||
$this->phpEx = $phpEx;
|
$this->phpEx = $phpEx;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->locator = new phpbb_template_locator();
|
$this->locator = new phpbb_template_locator($phpbb_root_path, $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user