mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-16 21:18:19 +01:00
fix for undefined property in SetupController [fixes #3774]
This commit is contained in:
parent
e8fb2b78a5
commit
f800c3a76d
@ -134,18 +134,21 @@ class SetupController extends Controller
|
||||
*/
|
||||
public function getIndex()
|
||||
{
|
||||
$supportedLanguages = Request::getLanguages();
|
||||
$requestedLanguages = Request::getLanguages();
|
||||
$userLanguage = Config::get('app.locale');
|
||||
$langs = Config::get('langs');
|
||||
|
||||
foreach ($supportedLanguages as $language) {
|
||||
foreach ($requestedLanguages as $language) {
|
||||
$language = str_replace('_', '-', $language);
|
||||
|
||||
if (isset($this->langs[$language])) {
|
||||
if (isset($langs[$language])) {
|
||||
$userLanguage = $language;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
app('translator')->setLocale($userLanguage);
|
||||
|
||||
// Since .env may already be configured, we should show that data!
|
||||
$cacheConfig = [
|
||||
'driver' => Config::get('cache.default'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user