|
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 |
pekka Smarty Rookie
Joined: 16 Jan 2009 Posts: 6
|
Posted: Wed Jan 06, 2010 2:20 pm Post subject: Variable Typo in smarty_internal_resource_registered.php |
|
|
I just installed Smarty 3 Beta 5 to work with a third-party PHP script that requires Smarty 2. While that may not work without some changes, I came across something that looks like an error. I can't go into detail about where this happens because I don't know the script yet, but I think it's pretty self explanatory:
Code: | Fatal error: Cannot access empty property in /home/www/web330/html/hansetrail/api/smarty/libs/sysplugins/smarty_internal_resource_registered.php on line 113 |
Line 113 is
Code: | $_filepath = $_template->$templateUid; |
however, the variable $templateUid is never defined, but $_template->templateUid is referenced various times. I guess this is a simple typo and what is meant is actually $_template->templateUid . |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Jan 06, 2010 3:53 pm Post subject: |
|
|
Thanks. The fix is in the SVN now. |
|
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
|