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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user