Procházet zdrojové kódy

fix: 🐛 settings::locale:available string to array conversion

IceToast před 3 roky
rodič
revize
1a45c16feb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      resources/views/layouts/main.blade.php

+ 1 - 1
resources/views/layouts/main.blade.php

@@ -66,7 +66,7 @@
                             aria-labelledby="changeLocale">
                             <form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
                                 @csrf
-                                @foreach (json_decode(config('SETTINGS::LOCALE:AVAILABLE')) as $key)
+                                @foreach (explode(',', config('SETTINGS::LOCALE:AVAILABLE')) as $key)
                                     <button class="dropdown-item" name="inputLocale" value="{{ $key }}">
                                         {{ __($key) }}
                                     </button>