fixed issue with object-callback when fetching a php-resource

This commit is contained in:
messju
2003-04-28 00:55:01 +00:00
parent 4dac038066
commit 217b120db3

View File

@@ -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;
}