mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed issue with object-callback when fetching a php-resource
This commit is contained in:
@@ -1424,10 +1424,10 @@ class Smarty
|
||||
}
|
||||
}
|
||||
} else if ($resource_type != 'file') {
|
||||
$readable = true;
|
||||
$template_source = null;
|
||||
$resource_func = $this->_plugins['resource'][$resource_type][0][0];
|
||||
$readable = $resource_func($resource_name, $template_source, $this);
|
||||
$readable = $this->_plugin_implementation_exists($this->_plugins['resource'][$resource_type][0][0])
|
||||
&& call_user_func_array($this->_plugins['resource'][$resource_type][0][0],
|
||||
array($resource_name, &$template_source, &$this));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1456,7 +1456,6 @@ class Smarty
|
||||
} else {
|
||||
$php_resource = $template_source;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user