PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Xipe » Bug #267

templateDir cannot be set to '.'

Details

Submitted2003-11-18 11:18 UTC
Fromsmith at backendmedia dot com
Assignedcain
StatusSuspended
PackageHTML_Template_Xipe
PHP VersionIrrelevant
OSWindows
Roadmaps(Not assigned)

Comments

[2003-11-18 11:18 UTC] smith at backendmedia dot com

Description:
------------
I tried setting this to '.' and this not to be working. Here is a fix I applied to my local copy:

RCS file: /2nd_drive/cvs/WebBuilder2.0/library/HTML/Template/Xipe/Main.php,v
retrieving revision 1.2
diff -r1.2 Main.php
295c295
< if( strpos( $this->_templateFile , $this->getOption('templateDir') ) === 0 )
---
> if( $this->getOption('templateDir') != '.' && strpos( $this->_templateFile , $this->getOption('templateDir') ) === 0 ) {
296a297
> }

Not sure if this is really an all emcompassing solution but it worked for me :-)

'..' might need some adressing as well ..