Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:microweber/microweber into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Sep 9, 2021
2 parents 641dc0b + 59bcda3 commit 3aafae5
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -14,6 +14,7 @@
use Illuminate\Events\Dispatcher;
use Illuminate\Foundation\Events\LocaleUpdated;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use MicroweberPackages\Form\FormElementBuilder;
use MicroweberPackages\Module\Module;
Expand Down Expand Up @@ -61,6 +62,10 @@ public function boot()
return new MultilanguageRepository();
});

if (!Schema::hasTable('multilanguage_supported_locales')) {
mw_post_update();
}

$getSupportedLocales = $this->app->multilanguage_repository->getSupportedLocales(true);
if (empty($getSupportedLocales)) {
$isMultilanguageActive = false;
Expand Down

0 comments on commit 3aafae5

Please sign in to comment.