From 8be78d79395215057d7033de46a3d39fe1cf583d Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 25 Jun 2020 21:02:56 +0300 Subject: [PATCH] fix(entries): fix method rename() in Entries API #433 --- src/flextype/core/Entries/Entries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/core/Entries/Entries.php b/src/flextype/core/Entries/Entries.php index cde5f011..25c47959 100755 --- a/src/flextype/core/Entries/Entries.php +++ b/src/flextype/core/Entries/Entries.php @@ -522,8 +522,8 @@ class Entries */ public function rename(string $id, string $new_id) : bool { - if (!Filesystem::has($this->getFileLocation($new_id))) { - return rename($this->getFileLocation($id), $this->getFileLocation($new_id)); + if (!Filesystem::has($this->getDirLocation($new_id))) { + return rename($this->getDirLocation($id), $this->getDirLocation($new_id)); } else { return false; }