|
|
|
|
@ -219,7 +219,20 @@ if (!empty($some_activex) || !empty($some_plugins)) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$controller->tpl->assign('profile_block', $controller->return_profile_block()); |
|
|
|
|
$diagnosisComplete = true; |
|
|
|
|
if (api_is_student()) { |
|
|
|
|
$extraFieldValue = new ExtraFieldValue('user'); |
|
|
|
|
$diagnosisComplete = $extraFieldValue->get_values_by_handler_and_field_variable( |
|
|
|
|
api_get_user_id(), |
|
|
|
|
'diagnosis_completed' |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if ($diagnosisComplete === false) { |
|
|
|
|
Display::addFlash(Display::return_message(get_lang('DoDiagnosisNow'))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$controller->tpl->assign('profile_block', $controller->return_profile_block($diagnosisComplete)); |
|
|
|
|
$controller->tpl->assign('user_image_block', $controller->return_user_image_block()); |
|
|
|
|
$controller->tpl->assign('course_block', $controller->return_course_block()); |
|
|
|
|
$controller->tpl->assign('navigation_course_links', $controller->return_navigation_links()); |
|
|
|
|
@ -233,18 +246,6 @@ if (!empty($_GET['history'])) { |
|
|
|
|
$historyClass = 'courses-history'; |
|
|
|
|
} |
|
|
|
|
$controller->tpl->assign('course_history_page', $historyClass); |
|
|
|
|
|
|
|
|
|
if (api_is_student()) { |
|
|
|
|
$extraFieldValue = new ExtraFieldValue('user'); |
|
|
|
|
$diagnosisComplete = $extraFieldValue->get_values_by_handler_and_field_variable( |
|
|
|
|
api_get_user_id(), |
|
|
|
|
'diagnosis_completed' |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if ($diagnosisComplete === false) { |
|
|
|
|
Display::addFlash(Display::return_message(get_lang('DoDiagnosisNow'))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$controller->tpl->display_two_col_template(); |
|
|
|
|
|
|
|
|
|
// Deleting the session_id. |
|
|
|
|
|