diff --git a/main/exercice/calculated_answer.class.php b/main/exercice/calculated_answer.class.php index b3b3d6d7c6..c7836ebe27 100644 --- a/main/exercice/calculated_answer.class.php +++ b/main/exercice/calculated_answer.class.php @@ -126,7 +126,7 @@ class CalculatedAnswer extends Question $form->addElement( 'html_editor', 'answer', - Display::returnIconPath('fill_field.png'), + Display::return_icon('fill_field.png'), array( 'id' => 'answer', 'onkeyup' => 'javascript: updateBlanks(this);' diff --git a/main/exercice/fill_blanks.class.php b/main/exercice/fill_blanks.class.php index ec11083be1..0ba04d89f9 100755 --- a/main/exercice/fill_blanks.class.php +++ b/main/exercice/fill_blanks.class.php @@ -254,7 +254,7 @@ class FillBlanks extends Question $form->addElement( 'html_editor', 'answer', - Display::returnIconPath('fill_field.png'), + Display::return_icon('fill_field.png'), ['id' => 'answer', 'onkeyup' => "javascript: updateBlanks(this);"], array('ToolbarSet' => 'TestQuestionDescription') ); diff --git a/main/exercice/global_multiple_answer.class.php b/main/exercice/global_multiple_answer.class.php index 994692f343..f98ecbff0a 100755 --- a/main/exercice/global_multiple_answer.class.php +++ b/main/exercice/global_multiple_answer.class.php @@ -45,7 +45,12 @@ class GlobalMultipleAnswer extends Question $html .='' . get_lang('Comment') . ''; $html .=''; - $form->addElement('label', get_lang('Answers') . '
'.Display::returnIconPath('fill_field.png'), $html); + $form->addElement( + 'label', + get_lang('Answers') . + '
'.Display::return_icon('fill_field.png'), + $html + ); $defaults = array(); $correct = 0; $answer = false;