[ticket/10616] Ignore template inheritance that points to self

Ignore template inheritance if it points to self

PHPBB3-10616
This commit is contained in:
Vjacheslav Trushkin 2012-02-03 16:09:48 +02:00
parent d2a3496149
commit 4aef6ea979

View file

@ -3323,6 +3323,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;
} }