diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-12 20:09:41 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-12 20:13:32 -0400 |
| commit | 94560d708649df876f8486d4ba5361475037f1ff (patch) | |
| tree | 6c24ddd25b5ba07383e24beff032c3f45f77a3db /phpBB/includes | |
| parent | d2ac05aa74d3a1c9723be41a4c0ffe86542f223f (diff) | |
| download | forums-94560d708649df876f8486d4ba5361475037f1ff.tar forums-94560d708649df876f8486d4ba5361475037f1ff.tar.gz forums-94560d708649df876f8486d4ba5361475037f1ff.tar.bz2 forums-94560d708649df876f8486d4ba5361475037f1ff.tar.xz forums-94560d708649df876f8486d4ba5361475037f1ff.zip | |
[feature/template-engine] Make INCLUDEPHP relative to board root.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/template.php | 6 | ||||
| -rw-r--r-- | phpBB/includes/template/compile.php | 2 |
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');"; } /** |
