From 09003016686eea2ff674136792e09db49a1f925c Mon Sep 17 00:00:00 2001
From: Thomas Mueller <thomas.mueller@tmit.eu>
Date: Tue, 12 Mar 2013 09:15:53 +0100
Subject: [PATCH] indexed slug should be created based on logic path

---
 lib/files/mapper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/files/mapper.php b/lib/files/mapper.php
index 520fadbd8c..c5f1f9888d 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
-- 
GitLab