Skip to content

Commit dcd99ad

Browse files
committed
[FIX] Double slashes in resourcePath().
1 parent b1a7abe commit dcd99ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/Traits/Path.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait Path
2727
*/
2828
public function path($path = '')
2929
{
30-
return rtrim(EVO_CORE_PATH, '/') . ($path ? DIRECTORY_SEPARATOR . $path : $path);
30+
return rtrim(EVO_CORE_PATH, DIRECTORY_SEPARATOR) . ($path ? DIRECTORY_SEPARATOR . $path : $path);
3131
}
3232

3333
/**
@@ -137,7 +137,7 @@ public function useDatabasePath($path)
137137
*/
138138
public function resourcePath($path = '')
139139
{
140-
return $this->publicPath() . DIRECTORY_SEPARATOR . 'assets' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
140+
return rtrim($this->publicPath(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'assets' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
141141
}
142142

143143
/**
@@ -388,5 +388,4 @@ public function terminate()
388388
{
389389

390390
}
391-
392391
}

0 commit comments

Comments
 (0)