Fixing PHP errors.

1.10.x
Julio Montoya 12 years ago
parent 4925967983
commit 080a0b258f
  1. 25
      main/document/create_document.php
  2. 1
      main/document/create_draw.php
  3. 8
      main/document/upload.php
  4. 2
      main/inc/lib/svg-edit/svg-editor.php

@ -600,30 +600,9 @@ if ($form->validate()) {
} }
} }
Display :: display_header($nameTools, "Doc"); $interbreadcrumb[] = array('url' => '#', 'name' => $nameTools);
// actions
echo '<div class="actions">';
// link back to the documents overview Display :: display_header($nameTools, "Doc");
if ($is_certificate_mode) {
echo '<a href="document.php?certificate=true&id='.$folder_id.'&selectcat='.Security::remove_XSS(
$_GET['selectcat']
).'">'.Display::return_icon(
'back.png',
get_lang('Back').' '.get_lang('To').' '.get_lang('CertificateOverview'),
'',
ICON_SIZE_MEDIUM
).'</a>';
} else {
echo '<a href="document.php?curdirpath='.Security::remove_XSS($dir).'">'.Display::return_icon(
'back.png',
get_lang('Back').' '.get_lang('To').' '.get_lang('DocumentsOverview'),
'',
ICON_SIZE_MEDIUM
).'</a>';
}
echo '</div>';
if ($is_certificate_mode) { if ($is_certificate_mode) {
$all_information_by_create_certificate = DocumentManager::get_all_info_to_certificate( $all_information_by_create_certificate = DocumentManager::get_all_info_to_certificate(

@ -18,7 +18,6 @@
// Name of the language file that needs to be included // Name of the language file that needs to be included
$language_file = array('document'); $language_file = array('document');
require_once '../inc/global.inc.php';
$_SESSION['whereami'] = 'document/createdraw'; $_SESSION['whereami'] = 'document/createdraw';
$this_section = SECTION_COURSES; $this_section = SECTION_COURSES;

@ -59,7 +59,6 @@ function check_unzip() {
document.upload.if_exists[2].disabled=false; document.upload.if_exists[2].disabled=false;
} }
} }
}
function setFocus(){ function setFocus(){
$("#title_file").focus(); $("#title_file").focus();
} }
@ -145,6 +144,7 @@ if ($is_certificate_array[0] == 'certificates') {
} }
// Title of the tool // Title of the tool
$add_group_to_title = null;
if ($to_group_id != 0) { // Add group name after for group documents if ($to_group_id != 0) { // Add group name after for group documents
$add_group_to_title = ' ('.$group_properties['name'].')'; $add_group_to_title = ' ('.$group_properties['name'].')';
} }
@ -172,6 +172,8 @@ if (empty($document_data['parents'])) {
$this_section = SECTION_COURSES; $this_section = SECTION_COURSES;
$interbreadcrumb[] = array('url' => '#', 'name' => $nameTools);
// Display the header // Display the header
Display::display_header($nameTools, 'Doc'); Display::display_header($nameTools, 'Doc');
@ -186,9 +188,9 @@ if (!empty($_FILES)) {
echo '<div class="actions">'; echo '<div class="actions">';
// Link back to the documents overview // Link back to the documents overview
if ($is_certificate_mode) { if ($is_certificate_mode) {
echo '<a href="document.php?id='.$document_id.'&selectcat=' . $selectcat.'">'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('CertificateOverview'),'',ICON_SIZE_MEDIUM).'</a>'; //echo '<a href="document.php?id='.$document_id.'&selectcat=' . $selectcat.'">'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('CertificateOverview'),'',ICON_SIZE_MEDIUM).'</a>';
} else { } else {
echo '<a href="document.php?id='.$document_id.'">'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'</a>'; //echo '<a href="document.php?id='.$document_id.'">'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'</a>';
} }
// Link to create a folder // Link to create a folder

@ -5,7 +5,7 @@
* @since 25/september/2010 * @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_protect_course_script();
api_block_anonymous_users(); api_block_anonymous_users();
if(!isset($_SESSION['draw_dir'])){ if(!isset($_SESSION['draw_dir'])){

Loading…
Cancel
Save