Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
2.6.0-RC2 bug in function _fetch_resource_info

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
jlgunter
Smarty n00b


Joined: 01 Nov 2003
Posts: 1

PostPosted: Sat Nov 01, 2003 4:19 pm    Post subject: 2.6.0-RC2 bug in function _fetch_resource_info Reply with quote

In Smarty.class.php, $_resource_type and $_resource_name do not get set if
$this->_parse_resource_name($_params) returns false (ie, can't find the resource_name in the template directory or the include path).

Simplest way I saw to fix it was to call the default_template_handler_func with $_params array elements instead of $_resource_type and $_resource_name strings.

Of course, this may have already been fixed in CVS or something, can't say I looked too hard, but thought I would post it incase anyone finds it usefull.

Here's the Diff:

Code:

1629c1629
<                         array($_resource_type, $_resource_name, &$params['source_content'], &$params['resource_timestamp'], &$this));
---
>                         array($_params['resource_type'], $_params['resource_name'], &$params['source_content'], &$params['resource_timestamp'], &$this));
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3335
Location: Oldenburg, Germany

PostPosted: Tue Nov 04, 2003 5:18 am    Post subject: Reply with quote

this is a bug and the solution suggested by you looks fully correct to me. i committed a fix. thanks for reporting this one!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP