fix dir
This commit is contained in:
parent
b02f4637e5
commit
5e56f7ce10
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class Core
|
||||||
{
|
{
|
||||||
$res = [];
|
$res = [];
|
||||||
|
|
||||||
$cache = self::getCache() . '/';
|
$cache = self::getCache() . DIRECTORY_SEPARATOR;
|
||||||
if (!is_dir($root) || !is_readable($root)) {
|
if (!is_dir($root) || !is_readable($root)) {
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -243,7 +243,7 @@ class Manage extends dcNsProcess
|
||||||
|
|
||||||
foreach ($_POST['modules'] as $root => $id) {
|
foreach ($_POST['modules'] as $root => $id) {
|
||||||
file_put_contents(
|
file_put_contents(
|
||||||
$dest . '/' . basename($root),
|
$dest . DIRECTORY_SEPARATOR . basename($root),
|
||||||
file_get_contents($root)
|
file_get_contents($root)
|
||||||
);
|
);
|
||||||
unlink($root);
|
unlink($root);
|
||||||
|
|
Loading…
Reference in a new issue