mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 17:10:29 +00:00
update
This commit is contained in:
parent
7c34f8004d
commit
5e11161787
2 changed files with 10 additions and 0 deletions
|
@ -100,6 +100,11 @@ class Modules extends Page
|
|||
|
||||
$this->installLogPulling = false;
|
||||
|
||||
$moduleInfo = ModulesManager::getModuleInfo($module);
|
||||
if (isset($moduleInfo['adminUrl'])) {
|
||||
return $this->redirect($moduleInfo['adminUrl']);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue