mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
- make sure that property value is set
This commit is contained in:
@@ -103,9 +103,15 @@ abstract class Smarty_Resource
|
||||
public function buildUniqueResourceName(Smarty $smarty, $resource_name, $isConfig = false)
|
||||
{
|
||||
if ($isConfig) {
|
||||
return get_class($this) . '#' . $smarty->joined_config_dir . '#' . $resource_name;
|
||||
if (!isset($smarty->_joined_config_dir)) {
|
||||
$smarty->getTemplateDir(null, true);
|
||||
}
|
||||
return get_class($this) . '#' . $smarty->_joined_config_dir . '#' . $resource_name;
|
||||
} else {
|
||||
return get_class($this) . '#' . $smarty->joined_template_dir . '#' . $resource_name;
|
||||
if (!isset($smarty->_joined_template_dir)) {
|
||||
$smarty->getTemplateDir();
|
||||
}
|
||||
return get_class($this) . '#' . $smarty->_joined_template_dir . '#' . $resource_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user