diff --git a/main/document/edit_document.php b/main/document/edit_document.php index a697a70cbe..90b538c8a8 100755 --- a/main/document/edit_document.php +++ b/main/document/edit_document.php @@ -448,7 +448,7 @@ if (file_exists($filepath.$doc)) { /* Display user interface */ // Display the header -$nameTools = get_lang('EditDocument') . ': '.$file_name; +$nameTools = get_lang('EditDocument') . ': '.$oldTitle; Display::display_header($nameTools, 'Doc'); // Display the tool title @@ -541,7 +541,8 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || $is_allowed_to_ $checked->setChecked(true); } } - if ($is_certificate_mode) + + if ($is_certificate_mode) $form->addElement('style_submit_button', 'submit', get_lang('SaveCertificate'), 'class="save"'); else $form->addElement('style_submit_button','submit',get_lang('SaveDocument'), 'class="save"'); @@ -562,7 +563,7 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || $is_allowed_to_ /* $form->addElement('html', '
'); */ -if (isset($_REQUEST['curdirpath']) && $_GET['curdirpath']=='/certificates') { + if (isset($_REQUEST['curdirpath']) && $_GET['curdirpath']=='/certificates') { $all_information_by_create_certificate=DocumentManager::get_all_info_to_certificate(); $str_info=''; foreach ($all_information_by_create_certificate[0] as $info_value) { @@ -571,6 +572,7 @@ if (isset($_REQUEST['curdirpath']) && $_GET['curdirpath']=='/certificates') { $create_certificate=get_lang('CreateCertificateWithTags'); Display::display_normal_message($create_certificate.':

'.$str_info,false); } + if ($is_certificate_mode) { echo '
'; echo ''.Display::return_icon('back.png',get_lang('Back').' '.get_lang('To').' '.get_lang('CertificateOverview')).get_lang('Back').' '.get_lang('To').' '.get_lang('CertificateOverview').''; @@ -582,6 +584,7 @@ if (isset($_REQUEST['curdirpath']) && $_GET['curdirpath']=='/certificates') { nav_to_slideshow($slide_id); } } + $form->display(); //Display::display_error_message(get_lang('ReadOnlyFile')); }