diff --git a/main/exercise/MatchingDraggable.php b/main/exercise/MatchingDraggable.php
index 5b347865b9..7affd9a6f6 100644
--- a/main/exercise/MatchingDraggable.php
+++ b/main/exercise/MatchingDraggable.php
@@ -267,7 +267,7 @@ class MatchingDraggable extends Question
$header .= '
'.get_lang('ElementList').' | ';
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
+ //RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('YourChoice').' | ';
diff --git a/main/exercise/matching.class.php b/main/exercise/matching.class.php
index fa00457094..37f8663183 100755
--- a/main/exercise/matching.class.php
+++ b/main/exercise/matching.class.php
@@ -289,7 +289,6 @@ class Matching extends Question
$header .= ''.get_lang('ElementList').' | ';
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('Choice').' | ';
diff --git a/main/exercise/multiple_answer.class.php b/main/exercise/multiple_answer.class.php
index 1c41cab975..9e5ea26490 100755
--- a/main/exercise/multiple_answer.class.php
+++ b/main/exercise/multiple_answer.class.php
@@ -237,7 +237,7 @@ class MultipleAnswer extends Question
$header .= ''.get_lang('Choice').' | ';
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
+ //RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('ExpectedChoice').' | ';
diff --git a/main/exercise/multiple_answer_combination.class.php b/main/exercise/multiple_answer_combination.class.php
index 5b6606781e..61b6cf5ad3 100755
--- a/main/exercise/multiple_answer_combination.class.php
+++ b/main/exercise/multiple_answer_combination.class.php
@@ -234,7 +234,7 @@ class MultipleAnswerCombination extends Question
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
+ //RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('Choice').' | ';
diff --git a/main/exercise/multiple_answer_true_false.class.php b/main/exercise/multiple_answer_true_false.class.php
index 09c0ef5287..ad95d7901d 100755
--- a/main/exercise/multiple_answer_true_false.class.php
+++ b/main/exercise/multiple_answer_true_false.class.php
@@ -315,7 +315,7 @@ class MultipleAnswerTrueFalse extends Question
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
+ //RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('Choice').' | ';
diff --git a/main/exercise/question.class.php b/main/exercise/question.class.php
index d7740f32a8..1785941caa 100755
--- a/main/exercise/question.class.php
+++ b/main/exercise/question.class.php
@@ -2013,7 +2013,6 @@ abstract class Question
) {
$scoreLabel = get_lang('CorrectAnswer');
}
-
$class = 'success';
}
diff --git a/main/exercise/unique_answer.class.php b/main/exercise/unique_answer.class.php
index f7201d8a76..c0dea56394 100755
--- a/main/exercise/unique_answer.class.php
+++ b/main/exercise/unique_answer.class.php
@@ -419,7 +419,7 @@ class UniqueAnswer extends Question
$header .= ''.get_lang('Choice').' | ';
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
+ //RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('ExpectedChoice').' | ';
diff --git a/main/exercise/unique_answer_no_option.class.php b/main/exercise/unique_answer_no_option.class.php
index 18b8388cc1..ec96ae1ff3 100755
--- a/main/exercise/unique_answer_no_option.class.php
+++ b/main/exercise/unique_answer_no_option.class.php
@@ -406,7 +406,7 @@ class UniqueAnswerNoOption extends Question
if (!in_array($exercise->results_disabled, [
RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,
- RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
+ //RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,
])
) {
$header .= ''.get_lang('Choice').' | ';
diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php
index 624dac6a58..af48bc0637 100644
--- a/main/inc/lib/api.lib.php
+++ b/main/inc/lib/api.lib.php
@@ -480,8 +480,6 @@ define('RESULT_DISABLE_RANKING', 6);
define('RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER', 7);
define('RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING', 8);
-// 4: Show final score only with and show expected answers only on the last attempt
-
define('EXERCISE_MAX_NAME_SIZE', 80);
// Question types (edit next array as well when adding values)