remove unneeded realpath call

This commit is contained in:
uwetews
2015-09-01 02:34:59 +02:00
parent d2fa4083f7
commit 2e0b834b59

View File

@@ -34,7 +34,7 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
*/ */
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null)
{ {
$uid = sha1(getcwd()); $uid = '';
$sources = array(); $sources = array();
$components = explode('|', $source->name); $components = explode('|', $source->name);
$exists = true; $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"); throw new SmartyException("Resource type {$_s->type} cannot be used with the extends resource type");
} }
$sources[$_s->uid] = $_s; $sources[$_s->uid] = $_s;
$uid .= $source->smarty->_realpath($_s->filepath, true); $uid .= $_s->filepath;
if ($_template) { if ($_template) {
$exists = $exists && $_s->exists; $exists = $exists && $_s->exists;
} }