diff --git a/core/src/Traits/Path.php b/core/src/Traits/Path.php index 4c939eb0d1..70ce151dc0 100644 --- a/core/src/Traits/Path.php +++ b/core/src/Traits/Path.php @@ -27,7 +27,7 @@ trait Path */ public function path($path = '') { - return rtrim(EVO_CORE_PATH, '/') . ($path ? DIRECTORY_SEPARATOR . $path : $path); + return rtrim(EVO_CORE_PATH, DIRECTORY_SEPARATOR) . ($path ? DIRECTORY_SEPARATOR . $path : $path); } /** @@ -137,7 +137,7 @@ public function useDatabasePath($path) */ public function resourcePath($path = '') { - return $this->publicPath() . DIRECTORY_SEPARATOR . 'assets' . ($path ? DIRECTORY_SEPARATOR . $path : $path); + return rtrim($this->publicPath(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'assets' . ($path ? DIRECTORY_SEPARATOR . $path : $path); } /** @@ -388,5 +388,4 @@ public function terminate() { } - }