Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
iberculturaviva
iberculturaviva-mapas
Commits
478fc513
Commit
478fc513
authored
Nov 10, 2021
by
erleibiazzio
Browse files
Ajusta mapeamento das pastas de configs
parent
e411f11f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
compose/common/config.php
compose/common/config.php
+8
-6
No files found.
compose/common/config.php
View file @
478fc513
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment