Jelajahi Sumber

Regression due to the safe compile: fixed an issue depending on the OS: could not compile (bug with PHP rename)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2843 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 tahun lalu
induk
melakukan
85e319b5f6
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 10 0
      setup/setuputils.class.inc.php

+ 10 - 0
setup/setuputils.class.inc.php

@@ -645,6 +645,15 @@ class SetupUtils
 			self::tidydir($sDest);
 		}
 
+		self::copydir($sSource, $sDest);
+		self::tidydir($sSource);
+		rmdir($sSource);
+
+		/**
+		 * We have tried the following implementation (based on a rename/mv)
+		 * But this does not work on some OSes.
+		 * More info: https://bugs.php.net/bug.php?id=54097		 		 
+		 *		 		 		 		 		
 		$aFiles = scandir($sSource);
 		if(sizeof($aFiles) > 0)
 		{
@@ -659,6 +668,7 @@ class SetupUtils
 			}
 		}
 		rmdir($sSource);
+		*/
 	}
 
 	static function GetPreviousInstance($sDir)