diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php index 673de3b21e337..132f155a35654 100644 --- a/htdocs/ecm/class/ecmdirectory.class.php +++ b/htdocs/ecm/class/ecmdirectory.class.php @@ -299,8 +299,8 @@ public function changeNbOfFiles($value) global $conf; if ($value == '+') { - $relativepath = $conf->ecm->dir_output . '/' .$this->getRelativePath(); // Ex: dir1/dir2/dir3/ - $relativepath = preg_replace('/^'.preg_quote(DOL_DATA_ROOT, '/').'/', '', $relativepath); + $relativepath = $conf->ecm->dir_output . '/' . $this->getRelativePath(); // Ex: dir1/dir2/dir3/ + $relativepath = preg_replace('/^' . preg_quote(DOL_DATA_ROOT, '/') . '/', '', $relativepath); $relativepath = trim($relativepath, '/'); // Get nb file in relative path