fix dir
parent
b02f4637e5
commit
5e56f7ce10
|
@ -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 New Issue