mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[feature/template-events] Make style names private on template.
PHPBB3-9550
This commit is contained in:
@@ -135,7 +135,7 @@ class phpbb_style
|
|||||||
$this->provider->set_styles($paths);
|
$this->provider->set_styles($paths);
|
||||||
$this->locator->set_paths($this->provider);
|
$this->locator->set_paths($this->provider);
|
||||||
|
|
||||||
$this->template->style_names = $names;
|
$this->template->set_style_names($names);
|
||||||
|
|
||||||
if ($template_path !== false)
|
if ($template_path !== false)
|
||||||
{
|
{
|
||||||
|
@@ -89,7 +89,7 @@ class phpbb_template
|
|||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public $style_names;
|
private $style_names;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
@@ -123,6 +123,18 @@ class phpbb_template
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the style names corresponding to style hierarchy being compiled
|
||||||
|
* and/or rendered.
|
||||||
|
*
|
||||||
|
* @param array $style_names List of style names in inheritance tree order
|
||||||
|
* @return null
|
||||||
|
*/
|
||||||
|
public function set_style_names(array $style_names)
|
||||||
|
{
|
||||||
|
$this->style_names = $style_names;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears all variables and blocks assigned to this template.
|
* Clears all variables and blocks assigned to this template.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user