2.28
Jean-Christian Paul Denis 2023-03-19 23:12:34 +01:00
parent b02f4637e5
commit 5e56f7ce10
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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);