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

$smarty->_get_auto_filename() with $use_sub_dirs = false

 
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 -> Bugs
View previous topic :: View next topic  
Author Message
simOen
Smarty Rookie


Joined: 17 May 2004
Posts: 5
Location: Bielefeld, Germany

PostPosted: Mon May 17, 2004 4:57 pm    Post subject: $smarty->_get_auto_filename() with $use_sub_dirs = false Reply with quote

The smarty method _get_auto_filename() returns a wrong filename if $use_sub_dirs is set to false. The returned filename lacks one ^ sign at the beginning.
This e.g. lets the is_cached() function always return false. A workaround is to set $use_sub_dirs to true again, like in previous smarty versions.

Maybe some versions are important here:
php5 rc2 / apache2
smarty 2.6.2

sorry for my bad english x_O
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon May 17, 2004 5:33 pm    Post subject: Reply with quote

i cannot reproduce that.
_get_auto_filename() produces fine filenames for me.
since _get_auto_filename() is used to genereate names for writing *and* for reading the cached file, is_cached() would even work it was missing a character (which it doesn't) .
Back to top
View user's profile Send private message Send e-mail Visit poster's website
simOen
Smarty Rookie


Joined: 17 May 2004
Posts: 5
Location: Bielefeld, Germany

PostPosted: Mon May 24, 2004 7:26 pm    Post subject: Reply with quote

i forgot to say that i am currently developing under windows xp pro. maybe that makes the difference?!
otherwise i don't know.. i'm doing fine with sub dirs atm, so no reason to complain about it Smile
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 -> 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