From d6debfa7d35b3b77b770889f9c3893cdb0c71ed9 Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Wed, 15 Dec 2010 22:53:23 +0000 Subject: [PATCH] compiled files by workspace is available from this --- gulliver/system/class.xmlform.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 1eab3739a..714c9024b 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -3767,8 +3767,11 @@ class XmlForm $this->fileName = $filename; $parsedFile = dirname ( $filename ) . PATH_SEP . basename ( $filename, 'xml' ) . $language; - $parsedFile = (defined ( 'PATH_C' ) ? PATH_C : PATH_DATA) . 'xmlform/' . substr ( $parsedFile, strlen ( $this->home ) ); - $this->parsedFile = $parsedFile; + + $parsedFilePath = defined ( 'PATH_C' ) ? ( defined('SYS_SYS') ? PATH_C . 'ws' . PATH_SEP . SYS_SYS . PATH_SEP: PATH_C ) : PATH_DATA; + $parsedFilePath .= 'xmlform/' . substr ( $parsedFile, strlen ( $this->home ) ); + + $this->parsedFile = $parsedFilePath; //Note that scriptFile must be public URL. $realPath = substr ( realpath ( $this->fileName ), strlen ( realpath ( $this->home ) ), - 4 ); if (substr ( $realPath, 0, 1 ) != PATH_SEP)