From 75bdb0df44ddb90dca417da210fd670236736a8d Mon Sep 17 00:00:00 2001 From: ceb Date: Wed, 6 Nov 2002 23:20:02 +0000 Subject: [PATCH] add SEP to add_file --- phpgwapi/inc/class.xslttemplates.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.xslttemplates.inc.php b/phpgwapi/inc/class.xslttemplates.inc.php index 69ab6a47fa..1496640bfe 100644 --- a/phpgwapi/inc/class.xslttemplates.inc.php +++ b/phpgwapi/inc/class.xslttemplates.inc.php @@ -95,9 +95,9 @@ $rootdir=$this->rootdir; } - if (substr($filename, 0, 1) != '/') + if (substr($filename, 0, 1) != SEP) { - $new_filename = $rootdir.'/'.$filename; + $new_filename = $rootdir . SEP . $filename; } else { @@ -290,7 +290,8 @@ $arguments = array('/_xml' => $this->xmldata, '/_xsl' => $this->xsldata); $html = xslt_process($xsltproc,'arg:/_xml','arg:/_xsl',NULL,$arguments); } - else // PHP 4.0.6 -- works okay + else /* PHP 4.0.6 -- works okay + no, it doesnt work at all :) [ceb] */ { xslt_process($this->xsldata, $this->xmldata,$html); }