Tracking: invert option to hide by default certificate of achievement icon

pull/4737/head
NicoDucou 2 years ago
parent c7ae3f358e
commit 45dcb03497
  1. 4
      main/install/configuration.dist.php
  2. 2
      main/mySpace/myStudents.php

@ -415,8 +415,8 @@ INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, d
//$_configuration['student_follow_page_add_LP_invisible_checkbox'] = false;
// Show the LP not marked as invisible by teacher in tracking page
//$_configuration['student_follow_page_include_not_subscribed_lp_students'] = false;
// Hide certificate of achievement icon from the student details in course tracking
//$_configuration['course_tracking_student_detail_hide_certificate_of_achievement'] = false;
// Show certificate of achievement icon from the student details in course tracking
//$_configuration['course_tracking_student_detail_show_certificate_of_achievement'] = false;
// Allow change the order to show the tools in "My progress" page.
/*$_configuration['my_progress_course_tools_order'] = [
'order' => ['quizzes', 'learning_paths', 'skills'],

@ -734,7 +734,7 @@ if (!empty($student_id) && empty($courseCode)) {
['class' => 'ajax', 'data-title' => get_lang('ExportToPDF')]
);
}
if (true !== api_get_configuration_value('course_tracking_student_detail_hide_certificate_of_achievement')) {
if (true === api_get_configuration_value('course_tracking_student_detail_show_certificate_of_achievement')) {
echo Display::url(
Display::return_icon('activity_monitor.png', get_lang('AccessDetails'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'mySpace/access_details_session.php?user_id='.$student_id

Loading…
Cancel
Save