';
$new_folder_text .= '';
+ $new_folder_text .= '';
//show the form
- Display::display_normal_message($new_folder_text,false);
+ echo $new_folder_text;
}
diff --git a/main/document/edit_document.php b/main/document/edit_document.php
index 5a102dd3b8..175e10f3e4 100644
--- a/main/document/edit_document.php
+++ b/main/document/edit_document.php
@@ -1,4 +1,4 @@
-addElement('header', '', $nameTools);
+
$renderer = $form->defaultRenderer();
$form->addElement('hidden','filename');
diff --git a/main/document/quota.php b/main/document/quota.php
index a6e5f0aad3..64acdfe039 100644
--- a/main/document/quota.php
+++ b/main/document/quota.php
@@ -1,4 +1,4 @@
- "document.php","name" => get_lang('Document'));
-$nameTools = get_lang("DocumentQuota"); // title of the page
+// title of the page
+$nameTools = get_lang("DocumentQuota");
+// display the header
Display::display_header($nameTools,"Doc");
@@ -130,28 +108,18 @@ function display_quota($course_quota, $already_consumed_space)
echo $message;
}
-/*
-==============================================================================
- MAIN CODE
-==============================================================================
-*/
-echo '
';
-echo $nameTools;
-echo '
';
+// getting the course quota
$course_quota = DocumentManager::get_course_quota();
+// setting the full path
$full_path = $baseWorkDir . $courseDir;
+// calculating the total space
$already_consumed_space = documents_total_space($_course);
+// displaying the quota
display_quota($course_quota, $already_consumed_space);
-
-/*
-==============================================================================
- FOOTER
-==============================================================================
-*/
-
+// display the footer
Display::display_footer();
?>
\ No newline at end of file