Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Variable Typo in smarty_internal_resource_registered.php

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
pekka
Smarty Rookie


Joined: 16 Jan 2009
Posts: 6

PostPosted: Wed Jan 06, 2010 2:20 pm    Post subject: Variable Typo in smarty_internal_resource_registered.php Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Jan 06, 2010 3:53 pm    Post subject: Reply with quote

Thanks. The fix is in the SVN now.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 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