mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
Merge pull request #881 from Fyorl/ticket/10970
Allow INCLUDE template macros to accept paths of the form {FOO}/a/{BAR}/c
This commit is contained in:
@@ -538,7 +538,11 @@ class phpbb_template
|
||||
// Locate file
|
||||
if ($locate)
|
||||
{
|
||||
$file = $this->locator->get_first_file_location(array($file), true, true);
|
||||
$located = $this->locator->get_first_file_location(array($file), false, true);
|
||||
if ($located)
|
||||
{
|
||||
$file = $located;
|
||||
}
|
||||
}
|
||||
else if ($relative)
|
||||
{
|
||||
|
Reference in New Issue
Block a user