flash, middleware
This commit is contained in:
@ -32,7 +32,6 @@ class AdminThemeService
|
||||
public function setActiveAdminTheme(string $theme): void
|
||||
{
|
||||
$active_admin_theme = Option::where("key", "active_admin_theme")->first();
|
||||
Debug::prn(getConst($theme));
|
||||
$active_admin_theme->value = getConst($theme);
|
||||
$active_admin_theme->save();
|
||||
}
|
||||
|
@ -346,6 +346,9 @@ class ModuleService
|
||||
$fileHelper->copy_folder(APP_DIR . '/modules/' . $moduleName, $tmpModuleDirFull . 'app/');
|
||||
$fileHelper->copy_folder(KERNEL_APP_MODULES_DIR . '/' . $moduleName, $tmpModuleDirFull . 'kernel/');
|
||||
|
||||
if (!is_dir(RESOURCES_DIR . '/tmp/module')) {
|
||||
mkdir(RESOURCES_DIR . '/tmp/modules', 0777, true);
|
||||
}
|
||||
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.itguild');
|
||||
|
||||
$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
|
||||
|
Reference in New Issue
Block a user