[Fusionforge-commits] r11856 - trunk/src/common/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Mon Dec 20 16:46:21 CET 2010


Author: nerville
Date: 2010-12-20 16:46:21 +0100 (Mon, 20 Dec 2010)
New Revision: 11856

Modified:
   trunk/src/common/docman/DocumentGroup.class.php
Log:
rmdir once injected

Modified: trunk/src/common/docman/DocumentGroup.class.php
===================================================================
--- trunk/src/common/docman/DocumentGroup.class.php	2010-12-20 15:14:40 UTC (rev 11855)
+++ trunk/src/common/docman/DocumentGroup.class.php	2010-12-20 15:46:21 UTC (rev 11856)
@@ -465,6 +465,7 @@
 			if ($zip->extractTo($extractDir)) {
 				$zip->close();
 				if ($this->__injectContent($doc_group, $extractDir)) {
+					rmdir($extractDir);
 					return true;
 				} else {
 					$this->setError(_('Unable inject zipfile.'));
@@ -498,6 +499,8 @@
 							if (!$this->__injectContent($this->getID(), $directory.'/'.$dir_arr[$i])) {
 								$this->setError(_('Unable to open directory for inject into tree'));
 								return false;
+							} else {
+								rmdir($directory.'/'.$dir_arr[$i]);
 							}
 						}
 					} else {




More information about the Fusionforge-commits mailing list