|
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 |
tgenannt Smarty Rookie
Joined: 05 Dec 2009 Posts: 5
|
Posted: Tue Jan 19, 2010 2:44 pm Post subject: Default modifier in {nocache} produces warning |
|
|
Hello,
in a template on our site we use the default modifier on a variable surrounded by {nocache}. This combination produces the following warning:
Code: | Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/share/php/:/var/www/www.team-ulm.de/include/') in /var/www/www.team-ulm.de/tpl_c/e0/31/1d/e0311d5fd0b89f604f11ddd53d9a9eba6ac1b2c1.file.p_myprofile.tpl.cache.php |
The code produced by Smarty in the compiled file is: Code: | if (!is_callable('smarty__default')) include ''; |
As soon, as the default modifier is removed, the warning goes away.
Does anybody know how to fix this?
Greetings,
Tobias |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jan 19, 2010 5:02 pm Post subject: |
|
|
There was a bug when a modifier or plugin was called first in a nocache section and later in a cached section.
The fix is in the SVN now. |
|
Back to top |
|
tgenannt Smarty Rookie
Joined: 05 Dec 2009 Posts: 5
|
Posted: Fri Jan 22, 2010 10:35 am Post subject: |
|
|
Thanks for the quick fix. |
|
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
|