PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #643

compileDir issue

Details

Submitted2004-01-29 18:21 UTC
Fromahundiak at ingr dot com
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP VersionIrrelevant
OSNA
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.