kernel pack, update and some fix
This commit is contained in:
1 parent
7cf3708e4d
commit
d3d5e3a8e5
9 files changed
+147
-59
No files matched your search
@@ -74,7 +74,12 @@ class ModuleController extends AdminController
|
||||
public function actionDeactivate(): void
|
||||
{
|
||||
$request = new Request();
|
||||
$this->moduleService->deactivateModule($request->get("slug"));
|
||||
$active_res = $this->moduleService->deactivateModule($request->get("slug"));
|
||||
if (!$active_res){
|
||||
Session::start();
|
||||
Session::set("error", implode(";", $this->moduleService->getErrors()));
|
||||
$this->redirect("/admin", 302);
|
||||
}
|
||||
$mod_info = $this->moduleService->getModuleInfoBySlug($request->get('slug'));
|
||||
|
||||
$this->cgView->render("view.php", ['data' => $mod_info]);
|
||||
@@ -88,4 +93,18 @@ class ModuleController extends AdminController
|
||||
$this->cgView->render("view.php", ['data' => $mod_info]);
|
||||
}
|
||||
|
||||
public function actionUpdate(): void
|
||||
{
|
||||
$request = new Request();
|
||||
$active_res = $this->moduleService->updateModule($request->get("slug"));
|
||||
if (!$active_res){
|
||||
Session::start();
|
||||
Session::set("error", implode(";", $this->moduleService->getErrors()));
|
||||
$this->redirect("/admin", 302);
|
||||
}
|
||||
$mod_info = $this->moduleService->getModuleInfoBySlug($request->get('slug'));
|
||||
|
||||
$this->cgView->render("view.php", ['data' => $mod_info]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user