Skip to content
Permalink
Browse files

Admin: Add configuration setting quiz_show_description_on_results_pag…

…e to control whether the test description is shown on the results page or not - refs BT#11784
  • Loading branch information...
ywarnier committed Jan 27, 2019
1 parent f4653e5 commit a7fbce409028e60845a608d1d9d89e403591a4a7
Showing with 5 additions and 1 deletion.
  1. +3 −1 main/inc/lib/exercise.lib.php
  2. +2 −0 main/install/configuration.dist.php
@@ -4785,7 +4785,9 @@ public static function displayQuestionListByAttempt(
echo $totalScoreText;
// Ofaj change BT#11784
if (!empty($objExercise->description)) {
if (api_get_configuration_value('quiz_show_description_on_results_page')
&& (!empty($objExercise->description)))
{
echo Display::div($objExercise->description, ['class' => 'exercise_description']);
}
@@ -559,6 +559,8 @@
//$_configuration["allow_teacher_comment_audio"] = false;
// Block copy/paste/save/print keys and right-clicks in exercises
//$_configuration['quiz_prevent_copy_paste'] = false;
// Always show the test description on the results page of the test
//$_configuration['quiz_show_description_on_results_page'] = false;
// Hide search form in session list
//$_configuration['hide_search_form_in_session_list'] = false;

1 comment on commit a7fbce4

@jmontoyaa

This comment has been minimized.

Copy link
Member

commented on a7fbce4 Jan 28, 2019

This should be added in master, as a new setting (in the database)

Please sign in to comment.
You can’t perform that action at this time.