Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

3.1.17 clearCompiledTemplate will not work anymore

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


Joined: 10 Jan 2011
Posts: 96

PostPosted: Thu Mar 13, 2014 5:32 pm    Post subject: 3.1.17 clearCompiledTemplate will not work anymore Reply with quote

Hi

With Smarty 3.1.17 the clearCompiledTemplate function was changed adding the realpath to $smarty->getCompileDir().

Code:
-        $_compile_dir = $smarty->getCompileDir();
+        $_compile_dir = realpath($smarty->getCompileDir());

Now $smarty->clearCompiledTemplate(null, $template); does not work anymore.
With switching back without realname it is OK again.

Regards
Ian
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Thu Mar 13, 2014 8:41 pm    Post subject: Reply with quote

Sorry, my fault
It's fixed in the SVN trunk.
We will rollout 3.1.18 ASAP
Back to top
View user's profile Send private message
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 96

PostPosted: Fri Mar 14, 2014 7:17 am    Post subject: Reply with quote

Thanks. That works!

Uwe, could you please also check this:
There are some files with wrong non-lf line endings and some files having spaces where there should not be any, like '; ' or '} ' etc.
Even one file I remember had tabs and a bigger block of unnecessary spaces. (You can see them when adding this to GitHub via Git-Gui).
I am sorry to not have listed them to be changed , when I fixed them on the fly.
Back to top
View user's profile Send private message
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