From f0507809cd3c097f61b6d15d3df8acfbd11dcad8 Mon Sep 17 00:00:00 2001 From: Niklas Droste Date: Mon, 28 Sep 2020 23:17:51 +0200 Subject: [PATCH] Bugfix: Use HTMLUtils also on DB-Settings --- resources/views/partials/system_settings.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/partials/system_settings.blade.php b/resources/views/partials/system_settings.blade.php index 16afe657a7..a895df36a0 100644 --- a/resources/views/partials/system_settings.blade.php +++ b/resources/views/partials/system_settings.blade.php @@ -18,10 +18,10 @@ {{--- Former::select('database[default]')->label('driver')->options(['mysql' => 'MySQL', 'pgsql' => 'PostgreSQL', 'sqlite' => 'SQLite']) ->value(isset($_ENV['DB_TYPE']) ? $_ENV['DB_TYPE'] : 'mysql') ---}} {!! Former::plaintext('driver')->value('MySQL') !!} - {!! Former::text('database[type][host]')->label('host')->value(isset($_ENV['DB_HOST']) ? $_ENV['DB_HOST'] : 'localhost') !!} - {!! Former::text('database[type][database]')->label('database')->value(isset($_ENV['DB_DATABASE']) ? $_ENV['DB_DATABASE'] : 'ninja') !!} - {!! Former::text('database[type][username]')->label('username')->value(isset($_ENV['DB_USERNAME']) ? $_ENV['DB_USERNAME'] : 'ninja') !!} - {!! Former::password('database[type][password]')->label('password')->value(isset($_ENV['DB_PASSWORD']) ? $_ENV['DB_PASSWORD'] : 'ninja') !!} + {!! Former::text('database[type][host]')->label('host')->value(HTMLUtils::getEnvForAccount('DB_HOST', 'localhost')) !!} + {!! Former::text('database[type][database]')->label('database')->value(HTMLUtils::getEnvForAccount('DB_DATABASE', 'ninja')) !!} + {!! Former::text('database[type][username]')->label('username')->value(HTMLUtils::getEnvForAccount('DB_USERNAME', 'ninja')) !!} + {!! Former::password('database[type][password]')->label('password')->value(HTMLUtils::getEnvForAccount('DB_PASSWORD', 'ninja')) !!} {!! Former::actions( Button::primary(trans('texts.test_connection'))->small()->withAttributes(['onclick' => 'testDatabase()']), '  ' ) !!}