aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template.php6
-rw-r--r--phpBB/includes/template/compile.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 64a3b80f07..f2b1cccd2c 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -513,7 +513,7 @@ class phpbb_template
/**
* Include a separate template
- * @access private
+ * @access public
* @param string $filename Template filename to include
* @param bool $include True to include the file, false to just load it
* @uses template_compile is used to compile uncached templates
@@ -543,9 +543,9 @@ class phpbb_template
/**
* Include a php-file
- * @access private
+ * @access public
*/
- private function _php_include($filename)
+ public function _php_include($filename)
{
$file = $this->phpbb_root_path . $filename;
diff --git a/phpBB/includes/template/compile.php b/phpBB/includes/template/compile.php
index 18a52e87a6..46a30d26d3 100644
--- a/phpBB/includes/template/compile.php
+++ b/phpBB/includes/template/compile.php
@@ -667,7 +667,7 @@ class phpbb_template_filter extends php_user_filter
*/
private function compile_tag_include_php($tag_args)
{
- return "include('$tag_args');";
+ return "\$_template->_php_include('$tag_args');";
}
/**