mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
- optimization of inheritance processing
This commit is contained in:
@@ -216,7 +216,7 @@ abstract class Smarty_Resource
|
||||
) {
|
||||
$parentPath = $obj->parent->source->filepath;
|
||||
// if we are inside an {block} tag the path must be relative to template of {block}
|
||||
if (isset($obj->ext->_inheritance) && $path = $obj->ext->_inheritance->getBlockFilepath()) {
|
||||
if (isset($obj->inheritance) && $path = $obj->inheritance->getBlockFilepath()) {
|
||||
$parentPath = $path;
|
||||
}
|
||||
$name = $smarty->_realpath(dirname($parentPath) . DS . $name);
|
||||
|
||||
Reference in New Issue
Block a user