1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

fix(entries): fix issue with entries paths on Windows #460

This commit is contained in:
Awilum
2020-08-18 19:44:49 +03:00
parent e07268bc8b
commit 533ed511d1

View File

@@ -199,7 +199,7 @@ class Entries
continue;
}
$_id = ltrim(rtrim(str_replace(PATH['project'] . '/entries/', '', $current_entry->getPath()), '/'), '/');
$_id = $uid = ltrim(rtrim(str_replace(PATH['project'] . '/entries/', '', str_replace('\\', '/', $current_entry->getPath())), '/'), '/');
$this->entries[$_id] = $this->fetchSingle($_id);
}