diff --git a/src/Core.php b/src/Core.php index f634394..c558775 100644 --- a/src/Core.php +++ b/src/Core.php @@ -39,7 +39,7 @@ class Core { $res = []; - $cache = self::getCache() . '/'; + $cache = self::getCache() . DIRECTORY_SEPARATOR; if (!is_dir($root) || !is_readable($root)) { return $res; } diff --git a/src/Manage.php b/src/Manage.php index 3110f49..b64fbe6 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -243,7 +243,7 @@ class Manage extends dcNsProcess foreach ($_POST['modules'] as $root => $id) { file_put_contents( - $dest . '/' . basename($root), + $dest . DIRECTORY_SEPARATOR . basename($root), file_get_contents($root) ); unlink($root);