diff --git a/main/inc/lib/exercise.lib.php b/main/inc/lib/exercise.lib.php index 0c4aedb2ea..59dfb42cda 100644 --- a/main/inc/lib/exercise.lib.php +++ b/main/inc/lib/exercise.lib.php @@ -4018,11 +4018,18 @@ HOTSPOT; */ public static function getQuestionRibbon($class, $scoreLabel, $result) { - return '
-
+ // ofaj + $hideLabel = api_get_configuration_value('exercise_hide_label'); + $label = '

'.$scoreLabel.'

-
-

'.get_lang('Score').': '.$result.'

+
+

'.get_lang('Score').': '.$result.'

'; + if ($hideLabel === true) { + $label = "

{$result}

"; + } + + return '
+ '.$label.'
' ; }