Skip to content

Commit

Permalink
[FIX] Double slashes in resourcePath().
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Aug 12, 2023
1 parent b1a7abe commit dcd99ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/Traits/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -388,5 +388,4 @@ public function terminate()
{

}

}

0 comments on commit dcd99ad

Please sign in to comment.