Do not remove .htaccess during auto-update sync

This commit is contained in:
Frédéric Guillot 2014-04-05 22:10:10 -04:00
parent a0d262dc9d
commit 675001ed6f
1 changed files with 7 additions and 4 deletions

View File

@ -59,11 +59,14 @@ function synchronize($source_directory, $destination_directory)
foreach ($remove_files as $file) {
$destination_file = $destination_directory.DIRECTORY_SEPARATOR.$file;
\Model\Config\debug('[REMOVE] '.$destination_file);
if ($file !== '.htaccess') {
if (! @unlink($destination_file)) {
return false;
$destination_file = $destination_directory.DIRECTORY_SEPARATOR.$file;
\Model\Config\debug('[REMOVE] '.$destination_file);
if (! @unlink($destination_file)) {
return false;
}
}
}