From 6ff9444903e6f7e96524f8449af90b3b4e35bc0e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Dec 2012 01:25:56 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20temporary=20folder=20when=20creating=20O?= =?UTF-8?q?DT=20segments=20on=20Windows=20or=20system=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/odtphp/Segment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/includes/odtphp/Segment.php b/htdocs/includes/odtphp/Segment.php index 83dff7f206a..0a3ad21c7f2 100644 --- a/htdocs/includes/odtphp/Segment.php +++ b/htdocs/includes/odtphp/Segment.php @@ -34,7 +34,7 @@ class Segment implements IteratorAggregate, Countable $this->xml = (string) $xml; $this->odf = $odf; $zipHandler = $this->odf->getConfig('ZIP_PROXY'); - $this->file = new $zipHandler(); + $this->file = new $zipHandler($this->odf->getConfig('PATH_TO_TMP')); $this->_analyseChildren($this->xml); } /** @@ -96,7 +96,7 @@ class Segment implements IteratorAggregate, Countable $this->file->addFile($imageKey, 'Pictures/' . $imageValue); } } - $this->file->close(); + $this->file->close(); return $this->xmlParsed; } /** @@ -162,7 +162,7 @@ IMG; $this->images[$value] = $file; $this->setVars($key, $xml, false); return $this; - } + } /** * Shortcut to retrieve a child *