Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
09ba8de8
Verified
Commit
09ba8de8
authored
Apr 18, 2018
by
Florian Azizian
Browse files
Merge branch 'develop' into 18.04
parents
1ece8913
e164c9b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
apps/maarch_entreprise/xml/entreprise.xml
View file @
09ba8de8
...
...
@@ -117,11 +117,11 @@
</process_mode>
<process_mode>
<label>
SVA
</label>
<process_mode_priority>
poiuytre13
13
nbvc
</process_mode_priority>
<process_mode_priority>
poiuytre13
57
nbvc
</process_mode_priority>
</process_mode>
<process_mode>
<label>
SVR
</label>
<process_mode_priority>
poiuytre13
13
nbvc
</process_mode_priority>
<process_mode_priority>
poiuytre13
57
nbvc
</process_mode_priority>
</process_mode>
</process_modes>
<priorities>
...
...
src/app/contact/controllers/ContactController.php
View file @
09ba8de8
...
...
@@ -166,30 +166,33 @@ class ContactController
{
$customId
=
CoreConfigModel
::
getCustomId
();
if
(
is_dir
(
"custom/
{
$customId
}
/referential"
))
{
$banDirectory
=
"custom/
{
$customId
}
/referential/"
;
}
else
{
$banDirectory
=
'referential/'
;
if
(
is_dir
(
"custom/
{
$customId
}
/referential/ban/indexes"
))
{
$customFilesDepartments
=
scandir
(
"custom/
{
$customId
}
/referential/ban/indexes"
);
}
if
(
is_dir
(
"referential/ban/indexes"
))
{
$filesDepartments
=
scandir
(
"referential/ban/indexes"
);
}
$empty_folder
=
true
;
$empty_files
=
true
;
if
(
is_dir
(
$banDirectory
))
{
$empty_folder
=
false
;
$departments
=
[];
if
(
!
empty
(
$customFilesDepartments
))
{
foreach
(
$customFilesDepartments
as
$value
)
{
if
(
$value
!=
'.'
&&
$value
!=
'..'
)
{
$departments
[]
=
$value
;
}
}
}
if
(
$files
=
glob
(
$banDirectory
.
'ban/indexes/'
.
'/*'
))
{
$empty_files
=
false
;
$arrayNumDep
=
array
();
foreach
(
$files
as
$key
=
>
$value
)
{
array_push
(
$arrayNumDep
,
basename
(
$value
));
if
(
!
empty
(
$filesDepartments
))
{
foreach
(
$filesDepartments
as
$value
)
{
if
(
$value
!=
'.'
&&
$value
!=
'..'
&&
!
in_array
(
$value
,
$departments
))
{
$departments
[]
=
$value
;
}
}
return
$arrayNumDep
;
}
if
(
!
$empty_folder
&&
!
$empty_files
)
{
return
true
;
if
(
!
empty
(
$departments
))
{
sort
(
$departments
,
SORT_NUMERIC
);
return
$departments
;
}
else
{
return
false
;
}
...
...
src/core/controllers/CoreController.php
View file @
09ba8de8
...
...
@@ -37,7 +37,7 @@ class CoreController
$aInit
[
'scriptsToinject'
]
=
[];
$scriptsToInject
=
scandir
(
'dist'
);
$scriptsToInject
=
scandir
(
'dist'
);
foreach
(
$scriptsToInject
as
$key
=>
$value
)
{
if
(
strstr
(
$value
,
'inline.'
)
!==
false
||
strstr
(
$value
,
'main.'
)
!==
false
||
strstr
(
$value
,
'vendor.'
)
!==
false
||
strstr
(
$value
,
'scripts.'
)
!==
false
)
{
if
(
strstr
(
$value
,
'.js.map'
)
===
false
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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