summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_resource_registered.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sysplugins/smarty_internal_resource_registered.php')
-rw-r--r--libs/sysplugins/smarty_internal_resource_registered.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/sysplugins/smarty_internal_resource_registered.php b/libs/sysplugins/smarty_internal_resource_registered.php
index 5f6ebc29..186fcddd 100644
--- a/libs/sysplugins/smarty_internal_resource_registered.php
+++ b/libs/sysplugins/smarty_internal_resource_registered.php
@@ -60,7 +60,8 @@ class Smarty_Internal_Resource_Registered extends Smarty_Resource
{
// return timestamp
$time_stamp = false;
- call_user_func_array($source->smarty->registered_resources[$source->type][0][1], array($source->name, &$time_stamp, $source->smarty));
+ call_user_func_array($source->smarty->registered_resources[ $source->type ][ 0 ][ 1 ],
+ array($source->name, &$time_stamp, $source->smarty));
return is_numeric($time_stamp) ? (int) $time_stamp : $time_stamp;
}
@@ -77,7 +78,8 @@ class Smarty_Internal_Resource_Registered extends Smarty_Resource
{
// return template string
$content = null;
- $t = call_user_func_array($source->smarty->registered_resources[$source->type][0][0], array($source->name, &$content, $source->smarty));
+ $t = call_user_func_array($source->smarty->registered_resources[ $source->type ][ 0 ][ 0 ],
+ array($source->name, &$content, $source->smarty));
if (is_bool($t) && !$t) {
throw new SmartyException("Unable to read template {$source->type} '{$source->name}'");
}