Compare commits
No commits in common. "8eae9773572e21e5783c2cebbe7d9ad863dacbe6" and "5ec081022d3f9f236853d7f76214b0126757fde2" have entirely different histories.
8eae977357
...
5ec081022d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Tags",
|
"name": "Tags",
|
||||||
"version": "0.2",
|
"version": "0.1",
|
||||||
"author": "ITGuild",
|
"author": "ITGuild",
|
||||||
"slug": "tag",
|
"slug": "tag",
|
||||||
"description": "Tags module",
|
"description": "Tags module",
|
||||||
|
@ -82,11 +82,11 @@ class Files
|
|||||||
if(is_dir($include)) {
|
if(is_dir($include)) {
|
||||||
if ($include->getFilename() === 'app_modules') continue;
|
if ($include->getFilename() === 'app_modules') continue;
|
||||||
|
|
||||||
$tmpFolder = $folder . '/' . $include->getFilename();
|
$tmpFolder = $folder . '/' . $include->getFilename() . '/';
|
||||||
$this->recursiveAddFile($zip, $include, $tmpFolder);
|
$this->recursiveAddFile($zip, $include, $tmpFolder);
|
||||||
}
|
}
|
||||||
if (is_file($include)) {
|
if (is_file($include)) {
|
||||||
$zip->addFile($include->getPathName(), $folder . "/" . $include->getFilename());
|
$zip->addFile($include->getPathName(), $folder . $include->getFilename());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Post",
|
"name": "Post",
|
||||||
"version": "0.2",
|
"version": "0.1",
|
||||||
"author": "ITGuild",
|
"author": "ITGuild",
|
||||||
"slug": "post",
|
"slug": "post",
|
||||||
"description": "Post module",
|
"description": "Post module",
|
||||||
|
@ -342,20 +342,15 @@ class ModuleService
|
|||||||
$tmpModuleDirFull = RESOURCES_DIR . '/tmp/ad/' . $moduleName . "/";
|
$tmpModuleDirFull = RESOURCES_DIR . '/tmp/ad/' . $moduleName . "/";
|
||||||
|
|
||||||
$fileHelper = new Files();
|
$fileHelper = new Files();
|
||||||
$fileHelper->copy_folder(ROOT_DIR . $path, $tmpModuleDirFull . 'app/');
|
$fileHelper->copy_folder(APP_DIR . '/modules/' . $moduleName, $tmpModuleDirFull . 'app/');
|
||||||
if (file_exists(KERNEL_APP_MODULES_DIR . '/' . $moduleName)){
|
$fileHelper->copy_folder(KERNEL_APP_MODULES_DIR . '/' . $moduleName, $tmpModuleDirFull . 'kernel/');
|
||||||
$fileHelper->copy_folder(KERNEL_APP_MODULES_DIR . '/' . $moduleName, $tmpModuleDirFull . 'kernel/');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mkdir($tmpModuleDirFull . 'kernel/');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!is_dir(RESOURCES_DIR . '/tmp/modules')) {
|
if (!is_dir(RESOURCES_DIR . '/tmp/modules')) {
|
||||||
mkdir(RESOURCES_DIR . '/tmp/modules', 0777, true);
|
mkdir(RESOURCES_DIR . '/tmp/modules', 0777, true);
|
||||||
}
|
}
|
||||||
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.igm');
|
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.igm');
|
||||||
|
|
||||||
//$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
|
$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user