From 2e0b834b5946033e3728c82b83fbd9fdc757e351 Mon Sep 17 00:00:00 2001 From: uwetews Date: Tue, 1 Sep 2015 02:34:59 +0200 Subject: [PATCH] remove unneeded realpath call --- libs/sysplugins/smarty_internal_resource_extends.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sysplugins/smarty_internal_resource_extends.php b/libs/sysplugins/smarty_internal_resource_extends.php index d1ebd09e..0c0802d6 100644 --- a/libs/sysplugins/smarty_internal_resource_extends.php +++ b/libs/sysplugins/smarty_internal_resource_extends.php @@ -34,7 +34,7 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource */ public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) { - $uid = sha1(getcwd()); + $uid = ''; $sources = array(); $components = explode('|', $source->name); $exists = true; @@ -45,7 +45,7 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource throw new SmartyException("Resource type {$_s->type} cannot be used with the extends resource type"); } $sources[$_s->uid] = $_s; - $uid .= $source->smarty->_realpath($_s->filepath, true); + $uid .= $_s->filepath; if ($_template) { $exists = $exists && $_s->exists; }