Home » HTML » HTML_Template_Flexy » Bug #643
compileDir issue
Details
| 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) |
Comments
[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.