1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/template-engine] Fixed absolute path PHP includes, added test.

PHPBB3-9726
This commit is contained in:
Oleg Pudeyev
2011-05-19 12:18:16 -04:00
parent efda4da19f
commit 6ae5a64f6c
3 changed files with 33 additions and 1 deletions

View File

@@ -529,7 +529,14 @@ class phpbb_template
*/
public function _php_include($filename)
{
$file = $this->phpbb_root_path . $filename;
if (is_absolute($filename))
{
$file = $filename;
}
else
{
$file = $this->phpbb_root_path . $filename;
}
if (!file_exists($file))
{