Обновление для модуля "Дизайн". При ошибке загружается дефолтная тема
This commit is contained in:
parent
449310bd1c
commit
3cfa6b57f3
@ -29,13 +29,14 @@ public function boot()
|
|||||||
$this->registerLivewire();
|
$this->registerLivewire();
|
||||||
$this->registerHelpers();
|
$this->registerHelpers();
|
||||||
try {
|
try {
|
||||||
define('DESIGN_PARAMETERS', Design::getParameters());
|
define('DESIGN_PARAMETERS', Design::getParameters());
|
||||||
if (array_key_exists('title', DESIGN_PARAMETERS)) {
|
if (array_key_exists('title', DESIGN_PARAMETERS)) {
|
||||||
\Config::set('app.name', DESIGN_PARAMETERS['title']);
|
\Config::set('app.name', DESIGN_PARAMETERS['title']);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
define('DESIGN_PARAMETERS', []);
|
define('DESIGN_PARAMETERS', []);
|
||||||
};
|
}
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function registerViews()
|
protected function registerViews()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user