mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10616] Ignore template inheritance that points to self
Ignore template inheritance if it points to self PHPBB3-10616
This commit is contained in:
parent
d2a3496149
commit
4aef6ea979
1 changed files with 5 additions and 0 deletions
|
@ -3322,6 +3322,11 @@ function parse_cfg_file($filename, $lines = false)
|
||||||
|
|
||||||
$parsed_items[$key] = $value;
|
$parsed_items[$key] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($parsed_items['inherit_from']) && isset($parsed_items['name']) && $parsed_items['inherit_from'] == $parsed_items['name'])
|
||||||
|
{
|
||||||
|
unset($parsed_items['inherit_from']);
|
||||||
|
}
|
||||||
|
|
||||||
return $parsed_items;
|
return $parsed_items;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue