Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Bug #643 compileDir issue
Submitted: 2004-01-29 18:21 UTC
From: ahundiak at ingr dot com Assigned: alan_k
Status: Closed Package: HTML_Template_Flexy
PHP Version: Irrelevant OS: NA
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 5 = ?

 
 [2004-01-29 18:21 UTC] ahundiak at ingr dot com
Description: ------------ The compile method in Flexy.php has these lines: // on windows the base directory will be C:! // so you have to hard code the path (no relatives on windows if (DIRECTORY_SEPARATOR == "/") { // if the compileDir doesnt start with a / then its under the template dir if ( $this->options['compileDir']{0} != DIRECTORY_SEPARATOR ) { $this->options['compileDir'] = $this->options['templateDir'].'/'.$this->options['compileDir']; } } The templateDir option is an array so the attempt to build a new complieDir path will fail. The comments seem to indicate that this is for Window but the unix path separator is being tested for. Relative paths work fine under unix. I would suggest just removing the above lines of code and requiring the user to provide a valid compileDir.

Comments

 [2004-01-30 00:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-01-31 08:01 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!