This commit is contained in:
Bozhidar 2024-04-26 23:36:26 +03:00
parent 7c34f8004d
commit 5e11161787
2 changed files with 10 additions and 0 deletions

View file

@ -100,6 +100,11 @@ class Modules extends Page
$this->installLogPulling = false;
$moduleInfo = ModulesManager::getModuleInfo($module);
if (isset($moduleInfo['adminUrl'])) {
return $this->redirect($moduleInfo['adminUrl']);
}
}
}

View file

@ -70,6 +70,11 @@ class ModulesManager
public static function saveInstalledModule($module)
{
$findModule = Module::where('name', $module)->first();
if ($findModule) {
return;
}
$newModule = new Module();
$newModule->name = $module;
$newModule->namespace = 'Modules\\' . $module;