mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 01:29:37 +01:00
small helper cleanup
This commit is contained in:
parent
253fe21554
commit
58436d108d
@ -90,7 +90,7 @@ if (!function_exists('resolve_path')) {
|
|||||||
if (!function_exists('plugin_path')) {
|
if (!function_exists('plugin_path')) {
|
||||||
function plugin_path(string $plugin, string ...$paths): string
|
function plugin_path(string $plugin, string ...$paths): string
|
||||||
{
|
{
|
||||||
return str_replace('//', '', base_path('plugins/') . $plugin . '/' . implode('/', $paths));
|
return join_paths(base_path('plugins'), $plugin, implode('/', $paths));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user