Обновление для модуля "Дизайн". При ошибке загружается дефолтная тема
This commit is contained in:
parent
449310bd1c
commit
3cfa6b57f3
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user