Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
renderer
Commits
85f219b3
Commit
85f219b3
authored
Apr 21, 2022
by
Jean-Philippe Metivier
Browse files
[FIX] Correction de la Notice lorsque pas d'argument
parent
c5f3b8f0
Pipeline
#14770
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenRenderer/Service/Macro/MacroService.php
View file @
85f219b3
...
@@ -176,8 +176,9 @@ class MacroService {
...
@@ -176,8 +176,9 @@ class MacroService {
{
{
$code
=
str_replace
(
'VAR['
,
''
,
$code
);
$code
=
str_replace
(
'VAR['
,
''
,
$code
);
$code
=
str_replace
(
']'
,
''
,
$code
);
$code
=
str_replace
(
']'
,
''
,
$code
);
$parameter
=
explode
(
"|"
,
$code
)[
1
];
$exploded
=
explode
(
"|"
,
$code
);
$code
=
explode
(
"|"
,
$code
)[
0
];
$parameter
=
(
$exploded
[
1
])
??
null
;
$code
=
(
$exploded
[
0
])
??
null
;
$macro
=
$this
->
getMacroByCode
(
$code
);
$macro
=
$this
->
getMacroByCode
(
$code
);
if
(
$macro
!==
null
)
{
if
(
$macro
!==
null
)
{
...
...
Write
Preview
Supports
Markdown
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