diff --git a/application/Espo/Core/Utils/File/Manager.php b/application/Espo/Core/Utils/File/Manager.php index 391ffabef6..5a1e5a35cd 100644 --- a/application/Espo/Core/Utils/File/Manager.php +++ b/application/Espo/Core/Utils/File/Manager.php @@ -839,7 +839,7 @@ return '.var_export($content, true).'; $fullPath = $this->concatPaths($path); if (!file_exists($fullPath)) { - $fullPath = $this->getExistsPath($fullPath, PATHINFO_DIRNAME); + $fullPath = $this->getExistsPath(pathinfo($fullPath, PATHINFO_DIRNAME)); } return $fullPath; diff --git a/tests/Espo/Core/Utils/File/ManagerTest.php b/tests/Espo/Core/Utils/File/ManagerTest.php index f0a0db14ce..bc231ce1c5 100644 --- a/tests/Espo/Core/Utils/File/ManagerTest.php +++ b/tests/Espo/Core/Utils/File/ManagerTest.php @@ -1,4 +1,4 @@ -assertEquals($result, $this->reflection->invokeMethod('getExistsPath', array($input)) ); + } } -?>