Commit 478fc513 authored by erleibiazzio's avatar erleibiazzio
Browse files

Ajusta mapeamento das pastas de configs

parent e411f11f
......@@ -3,12 +3,14 @@ define('APP_BASE_URL', (isset($_SERVER['HTTPS']) ? 'https://' : 'http://' ) . @$
$config = include 'conf-base.php';
$config_files = glob(__DIR__ . "/config.d/*.php");
sort($config_files);
foreach($config_files as $config_file) {
$config = array_merge($config, include ($config_file) );
foreach(['conf-common.d', 'config.d'] as $folder){
$config_files = glob(__DIR__ . "/{$folder}/*.php");
sort($config_files);
foreach($config_files as $config_file) {
$config = array_merge($config, include ($config_file) );
}
}
return $config;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment