From 533ed511d158f733e4fd41405e6ae792e8ecfe54 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 18 Aug 2020 19:44:49 +0300 Subject: [PATCH] fix(entries): fix issue with entries paths on Windows #460 --- src/flextype/app/Foundation/Entries/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/app/Foundation/Entries/Entries.php b/src/flextype/app/Foundation/Entries/Entries.php index 02232b59..0baaba97 100755 --- a/src/flextype/app/Foundation/Entries/Entries.php +++ b/src/flextype/app/Foundation/Entries/Entries.php @@ -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); }