mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user