mirror of
https://github.com/YGGverse/Pulsar.git
synced 2025-03-13 05:41:21 +00:00
make adaptive ending slash
This commit is contained in:
parent
433700d2d6
commit
e2ad81f3ba
@ -77,10 +77,13 @@ if (!file_exists(PULSAR_SERVER_KEY))
|
||||
// Init data directory
|
||||
define(
|
||||
'PULSAR_SERVER_DATA_DIRECTORY',
|
||||
str_starts_with(
|
||||
$config->data->directory,
|
||||
rtrim(
|
||||
str_starts_with(
|
||||
$config->data->directory,
|
||||
DIRECTORY_SEPARATOR
|
||||
) ? $config->data->directory : PULSAR_SERVER_DIRECTORY . $config->data->directory,
|
||||
DIRECTORY_SEPARATOR
|
||||
) ? $config->data->directory : PULSAR_SERVER_DIRECTORY . $config->data->directory
|
||||
) . DIRECTORY_SEPARATOR
|
||||
);
|
||||
|
||||
if (!is_dir(PULSAR_SERVER_DATA_DIRECTORY))
|
||||
|
Loading…
x
Reference in New Issue
Block a user