|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jlgunter Smarty n00b
Joined: 01 Nov 2003 Posts: 1
|
Posted: Sat Nov 01, 2003 4:19 pm Post subject: 2.6.0-RC2 bug in function _fetch_resource_info |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Nov 04, 2003 5:18 am Post subject: |
|
|
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 |
|
|
|
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
|