mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Regression due to the safe compile: fixed an issue depending on the OS: could not compile (bug with PHP rename)
SVN:trunk[2843]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user