Fix in odt library

This commit is contained in:
Laurent Destailleur 2010-03-13 17:38:48 +00:00
parent ef5d9dbc9b
commit 1959dbb13a

View File

@ -74,7 +74,7 @@ class Odf
if (! class_exists($this->config['ZIP_PROXY'])) {
throw new OdfException($this->config['ZIP_PROXY'] . ' class not found - check your php settings');
}
$this->file = new $zipHandler();
$this->file = new $zipHandler($this->tmpdir);
if ($this->file->open($filename) !== true) { // This also create the tmpdir directory
throw new OdfException("Error while Opening the file '$filename' - Check your odt file");