add dmsassets folder to file system sync exclusion, fixes #190

This commit is contained in:
Florian Thoma 2017-07-31 18:14:04 +10:00 committed by GitHub
parent 1fd287b264
commit f41375e608

View File

@ -19,3 +19,9 @@ if ($config->get('DMSDocument_versions', 'enable_versions')) {
//using the same db relations for the versioned documents, as for the actual documents
$config->update('DMSDocument_versions', 'db', $config->get('DMSDocument', 'db'));
}
// add dmsassets folder to file system sync exclusion
if (strpos($config->get('DMS', 'folder_name'), 'assets/') === 0) {
$folderName = str_replace('assets/', '', $config->get('DMS', 'folder_name'));
$config->update('Filesystem', 'sync_blacklisted_patterns', array("/^" . $folderName . "$/i",));
}