small helper cleanup

This commit is contained in:
Boy132 2025-05-12 09:36:54 +02:00
parent 253fe21554
commit 58436d108d

View File

@ -90,7 +90,7 @@ if (!function_exists('resolve_path')) {
if (!function_exists('plugin_path')) {
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));
}
}