Do not remove .htaccess during auto-update sync
This commit is contained in:
parent
a0d262dc9d
commit
675001ed6f
@ -59,11 +59,14 @@ function synchronize($source_directory, $destination_directory)
|
|||||||
|
|
||||||
foreach ($remove_files as $file) {
|
foreach ($remove_files as $file) {
|
||||||
|
|
||||||
$destination_file = $destination_directory.DIRECTORY_SEPARATOR.$file;
|
if ($file !== '.htaccess') {
|
||||||
\Model\Config\debug('[REMOVE] '.$destination_file);
|
|
||||||
|
|
||||||
if (! @unlink($destination_file)) {
|
$destination_file = $destination_directory.DIRECTORY_SEPARATOR.$file;
|
||||||
return false;
|
\Model\Config\debug('[REMOVE] '.$destination_file);
|
||||||
|
|
||||||
|
if (! @unlink($destination_file)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user