瀏覽代碼

Bug #5406 - "Documents" tool, the form for creation documents: Fixing a label text to depend on api_get_setting('use_document_title').

Ivan Tcholakov 15 年之前
父節點
當前提交
84eadda9e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/document/create_document.php

+ 1 - 1
main/document/create_document.php

@@ -381,7 +381,7 @@ if(!empty($_SESSION['_gid'])) {
 	$group[]= $form->createElement('checkbox','readonly','',get_lang('ReadOnly'));
 }
 // add group to the form
-$form->addGroup($group, 'filename_group', get_lang('FileName') ,'   ', false);
+$form->addGroup($group, 'filename_group', api_get_setting('use_document_title') == 'true' ? get_lang('Title') : get_lang('FileName') ,'   ', false);
 $form->addRule('filename_group', get_lang('ThisFieldIsRequired'), 'required');
 
 if (api_get_setting('use_document_title') == 'true') {