diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php
index 022b2a8ac23be18856abc4bb14128e8221a711f0..b88bc56a489d33c665815413f60961df5a2b8441 100644
--- a/htdocs/includes/odtphp/odf.php
+++ b/htdocs/includes/odtphp/odf.php
@@ -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");