flash msg fix

This commit is contained in:
Kavalar 2025-01-28 12:47:44 +03:00
parent 2655a793f5
commit 6242304843

View File

@ -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);