mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
remove unneeded realpath call
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user