aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/template.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-05-11 14:10:45 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-11-17 16:39:59 -0500
commit9c31a0ffc785e30c4ff87e8d9d66e7989b55d8ef (patch)
treec86ef1435b9a19e32d92badd1612a5e83bd4f9b9 /phpBB/includes/template/template.php
parent0df0c6199b89f154eb6371118b4a796a4d05f36f (diff)
downloadforums-9c31a0ffc785e30c4ff87e8d9d66e7989b55d8ef.tar
forums-9c31a0ffc785e30c4ff87e8d9d66e7989b55d8ef.tar.gz
forums-9c31a0ffc785e30c4ff87e8d9d66e7989b55d8ef.tar.bz2
forums-9c31a0ffc785e30c4ff87e8d9d66e7989b55d8ef.tar.xz
forums-9c31a0ffc785e30c4ff87e8d9d66e7989b55d8ef.zip
[feature/template-events] Rename template_name to style_name.
"Style name" makes a lot more sense and should be in line with recent style/template changes. PHPBB3-9550
Diffstat (limited to 'phpBB/includes/template/template.php')
-rw-r--r--phpBB/includes/template/template.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/includes/template/template.php b/phpBB/includes/template/template.php
index 19ee59323a..3de5cd45a5 100644
--- a/phpBB/includes/template/template.php
+++ b/phpBB/includes/template/template.php
@@ -82,14 +82,15 @@ class phpbb_template
private $extension_manager;
/**
- * Name of the top-level template being compiled and/or rendered.
+ * Name of the style that the template being compiled and/or rendered
+ * belongs to.
*
- * This is used by hooks implementation to invoke template-specific
+ * This is used by hooks implementation to invoke style-specific
* template hooks.
*
* @var string
*/
- private $template_name;
+ private $style_name;
/**
* Constructor.
@@ -301,7 +302,7 @@ class phpbb_template
return new phpbb_template_renderer_include($output_file, $this);
}
- $compile = new phpbb_template_compile($this->config['tpl_allow_php'], $this->template_name, $this->locator, $this->phpbb_root_path, $this->extension_manager, $this->user);
+ $compile = new phpbb_template_compile($this->config['tpl_allow_php'], $this->style_name, $this->locator, $this->phpbb_root_path, $this->extension_manager, $this->user);
if ($compile->compile_file_to_file($source_file, $output_file) !== false)
{