From 6242304843334533989e1be19d77b27fe99b79c3 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Tue, 28 Jan 2025 12:47:44 +0300 Subject: [PATCH] flash msg fix --- .../controllers/ModuleShopClientController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php b/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php index 376001d..b6f880d 100644 --- a/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php +++ b/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php @@ -256,8 +256,7 @@ class ModuleShopClientController extends AdminController if ($this->adminThemeService->install('/resources/tmp/admin_themes/' . basename($adminThemeInfo['path_to_archive']))) { Flash::setMessage("success", "Тема админ-панели успешно загружена."); } else { - Session::start(); - Session::set("error", implode(";", $this->adminThemeService->getErrors())); + Flash::setMessage("error", implode(";", $this->adminThemeService->getErrors())); } $this->redirect('/admin/module_shop_client', 302);