Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
27ebde12
Commit
27ebde12
authored
Aug 09, 2017
by
M. Chardon
Browse files
bug affichage champs texts des boutons
parent
632d90ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
locallib_admin.php
View file @
27ebde12
...
...
@@ -155,11 +155,19 @@ class assign_feedback_editpdfplus_admin {
$tooltextsarray
=
explode
(
"
\"
,
\"
"
,
$tooltexts
);
$compteur
=
0
;
foreach
(
$tooltextsarray
as
$value
)
{
$obj
=
new
object
();
$obj
->
text
=
substr
(
$value
,
1
,
-
1
);
$obj
->
index
=
$compteur
;
$data
->
tool
->
textsarray
[]
=
$obj
;
$compteur
++
;
if
(
$value
&&
$value
!=
'"'
)
{
$obj
=
new
object
();
$obj
->
text
=
/* substr( */
$value
/* ,1,-1) */
;
if
(
substr
(
$obj
->
text
,
0
,
1
)
==
'"'
)
{
$obj
->
text
=
substr
(
$obj
->
text
,
1
);
}
if
(
substr
(
$obj
->
text
,
-
1
)
==
'"'
)
{
$obj
->
text
=
substr
(
$obj
->
text
,
0
,
-
1
);
}
$obj
->
index
=
$compteur
;
$data
->
tool
->
textsarray
[]
=
$obj
;
$compteur
++
;
}
}
}
else
{
$data
->
tool
->
textsarray
=
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