diff --git a/main/document/create_document.php b/main/document/create_document.php
index 01ea4cd04e..e6bb63f5d1 100644
--- a/main/document/create_document.php
+++ b/main/document/create_document.php
@@ -600,30 +600,9 @@ if ($form->validate()) {
}
}
- Display :: display_header($nameTools, "Doc");
-
- // actions
- echo '
';
+ Display :: display_header($nameTools, "Doc");
if ($is_certificate_mode) {
$all_information_by_create_certificate = DocumentManager::get_all_info_to_certificate(
diff --git a/main/document/create_draw.php b/main/document/create_draw.php
index bb0e60674e..f0b0fa0534 100644
--- a/main/document/create_draw.php
+++ b/main/document/create_draw.php
@@ -18,7 +18,6 @@
// Name of the language file that needs to be included
$language_file = array('document');
-require_once '../inc/global.inc.php';
$_SESSION['whereami'] = 'document/createdraw';
$this_section = SECTION_COURSES;
diff --git a/main/document/upload.php b/main/document/upload.php
index e3ebb03812..44c44aa712 100644
--- a/main/document/upload.php
+++ b/main/document/upload.php
@@ -57,7 +57,6 @@ function check_unzip() {
document.upload.if_exists[0].checked=true;
document.upload.if_exists[0].disabled=false;
document.upload.if_exists[2].disabled=false;
- }
}
}
function setFocus(){
@@ -145,6 +144,7 @@ if ($is_certificate_array[0] == 'certificates') {
}
// Title of the tool
+$add_group_to_title = null;
if ($to_group_id != 0) { // Add group name after for group documents
$add_group_to_title = ' ('.$group_properties['name'].')';
}
@@ -172,6 +172,8 @@ if (empty($document_data['parents'])) {
$this_section = SECTION_COURSES;
+$interbreadcrumb[] = array('url' => '#', 'name' => $nameTools);
+
// Display the header
Display::display_header($nameTools, 'Doc');
@@ -186,9 +188,9 @@ if (!empty($_FILES)) {
echo '';
// Link back to the documents overview
if ($is_certificate_mode) {
- echo '
'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('CertificateOverview'),'',ICON_SIZE_MEDIUM).'';
+ //echo '
'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('CertificateOverview'),'',ICON_SIZE_MEDIUM).'';
} else {
- echo '
'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'';
+ //echo '
'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'';
}
// Link to create a folder
diff --git a/main/inc/lib/svg-edit/svg-editor.php b/main/inc/lib/svg-edit/svg-editor.php
index b97c89bc28..3a36063a42 100644
--- a/main/inc/lib/svg-edit/svg-editor.php
+++ b/main/inc/lib/svg-edit/svg-editor.php
@@ -5,7 +5,7 @@
* @since 25/september/2010
*/
-require_once '../../../inc/global.inc.php';//hack for Chamilo
+//require_once '../../../inc/global.inc.php';//hack for Chamilo
api_protect_course_script();
api_block_anonymous_users();
if(!isset($_SESSION['draw_dir'])){