Skip to content

Commit

Permalink
Fix phpcs, pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kkhelifa-opendsi committed Nov 15, 2024
1 parent 27a5591 commit 8952564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/ecm/class/ecmdirectory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8952564

Please sign in to comment.