|
|
|
|
@ -95,6 +95,9 @@ if ($capturePluginInstalled) { |
|
|
|
|
</script>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Create directory certificates. |
|
|
|
|
DocumentManager::create_directory_certificate_in_course(api_get_course_id()); |
|
|
|
|
|
|
|
|
|
if (empty($courseInfo)) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
|
} |
|
|
|
|
@ -1617,7 +1620,7 @@ if ($is_allowed_to_edit || |
|
|
|
|
if ($is_certificate_mode) { |
|
|
|
|
$actions .= Display::url( |
|
|
|
|
Display::return_icon('upload_certificate.png', get_lang('UploadCertificate'), '', ICON_SIZE_MEDIUM), |
|
|
|
|
api_get_path(WEB_CODE_PATH).'document/upload.php?'.api_get_cidreq().'&id='.$current_folder_id |
|
|
|
|
api_get_path(WEB_CODE_PATH).'document/upload.php?'.api_get_cidreq().'&&certificate=true&id='.$current_folder_id |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
$actions .= Display::url( |
|
|
|
|
|