mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-30 21:10:29 +03:00
Make existing configs backwards compatible with the trusted_proxies option
This commit is contained in:
parent
8b1e218862
commit
e2099735e1
@ -59,6 +59,12 @@ function load_system_configs()
|
||||
$configs['plugins'] = array();
|
||||
}
|
||||
|
||||
// Trusted proxies section should exists too. The logic behind "empty" statement is
|
||||
// the same as above.
|
||||
if (empty($configs['trusted_proxies'])) {
|
||||
$configs['trusted_proxies'] = array();
|
||||
}
|
||||
|
||||
// Database section should exists too. Also it should have an appropriate structure.
|
||||
if (empty($configs['database'])) {
|
||||
$configs['database'] = array();
|
||||
|
Loading…
Reference in New Issue
Block a user