aboutsummaryrefslogtreecommitdiffstats
path: root/library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-23 21:24:22 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-23 21:24:22 +0200
commit7e30c1dd823686eb8e59e6e1c171a751e8af2d49 (patch)
tree9a0dee0a26572e21f5576bcddbc2c4d4b905aa23 /library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php
parent78bf4564f20df20ec8d9025c974e25546e95bf69 (diff)
downloadvolse-hubzilla-7e30c1dd823686eb8e59e6e1c171a751e8af2d49.tar.gz
volse-hubzilla-7e30c1dd823686eb8e59e6e1c171a751e8af2d49.tar.bz2
volse-hubzilla-7e30c1dd823686eb8e59e6e1c171a751e8af2d49.zip
update smarty to version 3.1.29
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php')
-rw-r--r--library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php b/library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php
index 0c0802d62..3d687dca8 100644
--- a/library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php
+++ b/library/Smarty/libs/sysplugins/smarty_internal_resource_extends.php
@@ -44,7 +44,7 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
if ($_s->type == 'php') {
throw new SmartyException("Resource type {$_s->type} cannot be used with the extends resource type");
}
- $sources[$_s->uid] = $_s;
+ $sources[ $_s->uid ] = $_s;
$uid .= $_s->filepath;
if ($_template) {
$exists = $exists && $_s->exists;
@@ -110,4 +110,15 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
{
return str_replace(':', '.', basename($source->filepath));
}
+
+ /*
+ * Disable timestamp checks for extends resource.
+ * The individual source components will be checked.
+ *
+ * @return bool
+ */
+ public function checkTimestamps()
+ {
+ return false;
+ }
}