mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
Now without PHP errors.
This commit is contained in:
parent
dedf774bf2
commit
4dee6a9f59
@ -8,8 +8,6 @@ APP_URL=http://localhost
|
||||
TRUSTED_PROXIES=
|
||||
|
||||
DB_CONNECTION=pgsql
|
||||
# no DB info, is in database URL.
|
||||
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
|
@ -28,13 +28,13 @@ $username = '';
|
||||
$password = '';
|
||||
$database = '';
|
||||
|
||||
+if (!($databaseUrl === false)) {
|
||||
$options = parse_url($databaseUrl);
|
||||
$host = $options['host'];
|
||||
$username = $options['user'];
|
||||
$password = $options['pass'];
|
||||
$database = substr($options['path'], 1);
|
||||
}
|
||||
if (!($databaseUrl === false)) {
|
||||
$options = parse_url($databaseUrl);
|
||||
$host = $options['host'];
|
||||
$username = $options['user'];
|
||||
$password = $options['pass'];
|
||||
$database = substr($options['path'], 1);
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user