mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- bugfix remove constant DS as shortcut for DIRECTORY_SEPARATOR as the user may have defined it to something else https://github.com/smarty-php/smarty/issues/277
This commit is contained in:
@@ -218,7 +218,7 @@ abstract class Smarty_Resource
|
||||
if ($obj->_objType == 2 && $_file_is_dotted &&
|
||||
($obj->source->type == 'file' || $obj->parent->source->type == 'extends')
|
||||
) {
|
||||
$name = $smarty->_realpath(dirname($obj->parent->source->filepath) . DS . $name);
|
||||
$name = $smarty->_realpath(dirname($obj->parent->source->filepath) . $smarty->ds . $name);
|
||||
}
|
||||
return $resource->buildUniqueResourceName($smarty, $name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user