diff --git a/lib/files/mapper.php b/lib/files/mapper.php index 520fadbd8c6..c5f1f9888db 100644 --- a/lib/files/mapper.php +++ b/lib/files/mapper.php @@ -149,7 +149,7 @@ class Mapper // detect duplicates while ($this->resolvePhysicalPath($physicalPath) !== null) { - $physicalPath = $this->slugifyPath($physicalPath, $index++); + $physicalPath = $this->slugifyPath($logicPath, $index++); } // insert the new path mapping if requested