]> _ Git - cubist_cms-back.git/commitdiff
wip #4464
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 May 2021 19:36:07 +0000 (21:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 May 2021 19:36:07 +0000 (21:36 +0200)
src/app/Http/Controllers/CubistFrontController.php

index 172a6f9eae322c4361959ab52b675c394187ffe2..0234bea6c7d0edbbe8080a603baaae740a560ff6 100644 (file)
@@ -15,10 +15,14 @@ class CubistFrontController extends BaseController
 
     public function __construct()
     {
-        $this->data['variant'] = App::getVariant();
-        $this->data['global'] = Settings::getData();
-        $this->data['locales'] = Locale::getLocalesDataForFront();
-        $this->data['nav'] = Menu::getNavigation();
+       try {
+           $this->data['variant'] = App::getVariant();
+           $this->data['global'] = Settings::getData();
+           $this->data['locales'] = Locale::getLocalesDataForFront();
+           $this->data['nav'] = Menu::getNavigation();
+       }catch (\Exception $e){
+
+       }
     }