change folder extraction

This commit is contained in:
Florian Thoma 2017-07-31 19:22:19 +10:00 committed by GitHub
parent f41375e608
commit 9b31a7071f
1 changed files with 1 additions and 1 deletions

View File

@ -22,6 +22,6 @@ if ($config->get('DMSDocument_versions', 'enable_versions')) {
// 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'));
$folderName = substr($config->get('DMS', 'folder_name'), 7);
$config->update('Filesystem', 'sync_blacklisted_patterns', array("/^" . $folderName . "$/i",));
}