On Mon, 6 Aug 2007, Raymond Bosman wrote:

> On Sunday 05 August 2007 16:46, Felix Weis wrote:
> > I've created a patch for my bug #11228
> > (http://issues.ez.no/IssueView.php?Id=11228&ProjectId=1) which didnt allow
> > an absolute windows-path (C:\...\template.ezt) as template location.
> >
> > Here's a quick fix for the issue, created against trunk.
> 
> Thanks for the patch! I am just thinking if:
> 
> - There is a PHP function for this.

As far as I know there isn't any for this, but it would be a good idea 
to add this to ezcBaseFeatures as a method.

> - We have to check if the OS is Windows or Linux. In theory a file 
>   could be called: C:\bla.txt in Linux.

That's easy with the ezcBaseFeatures::os() method: 
http://ez.no/doc/components/view/latest/(file)/Base/ezcBaseFeatures.html#os

regards,
Derick
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to