Обновление для модуля "Дизайн". При ошибке загружается дефолтная тема

This commit is contained in:
developer 2026-03-27 10:49:22 +08:00
parent 449310bd1c
commit 3cfa6b57f3

View File

@ -29,13 +29,14 @@ public function boot()
$this->registerLivewire();
$this->registerHelpers();
try {
define('DESIGN_PARAMETERS', Design::getParameters());
if (array_key_exists('title', DESIGN_PARAMETERS)) {
\Config::set('app.name', DESIGN_PARAMETERS['title']);
}
define('DESIGN_PARAMETERS', Design::getParameters());
if (array_key_exists('title', DESIGN_PARAMETERS)) {
\Config::set('app.name', DESIGN_PARAMETERS['title']);
}
} catch (\Exception $e) {
define('DESIGN_PARAMETERS', []);
};
define('DESIGN_PARAMETERS', []);
}
;
}
protected function registerViews()