|
|
|
@ -2137,7 +2137,6 @@ if (count($documentAndFolders) > 1) { |
|
|
|
|
|
|
|
|
|
Display::display_header('', 'Doc'); |
|
|
|
|
|
|
|
|
|
/* Introduction section (editable by course admins) */ |
|
|
|
|
if (!empty($groupId)) { |
|
|
|
|
Display::display_introduction_section(TOOL_DOCUMENT.$groupId); |
|
|
|
|
} else { |
|
|
|
@ -2156,7 +2155,11 @@ echo $selector; |
|
|
|
|
|
|
|
|
|
$table->display(); |
|
|
|
|
|
|
|
|
|
if (count($documentAndFolders) > 1) { |
|
|
|
|
$disableQuotaMessage = api_get_configuration_value('disable_document_quota_message_for_students'); |
|
|
|
|
if ($isAllowedToEdit) { |
|
|
|
|
$disableQuotaMessage = false; |
|
|
|
|
} |
|
|
|
|
if (false === $disableQuotaMessage && count($documentAndFolders) > 1) { |
|
|
|
|
$ajaxURL = api_get_path(WEB_AJAX_PATH).'document.ajax.php?a=get_document_quota&'.api_get_cidreq(); |
|
|
|
|
if ($isAllowedToEdit) { |
|
|
|
|
echo '<script> |
|
|
|
@ -2185,7 +2188,6 @@ if (count($documentAndFolders) > 1) { |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
</script>'; |
|
|
|
|
|
|
|
|
|
echo '<span id="course_quota"></span>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|