git-svn-id: http://xe-core.googlecode.com/svn/trunk@742 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-28 06:20:35 +00:00
parent e71e466612
commit 85c958c8b1
7 changed files with 20 additions and 16 deletions

View file

@ -24,14 +24,14 @@
$saved_doc = $output->data;
if(!$saved_doc) return;
// 해당 저장본 삭제
$oEditorController = &getController('editor');
$oEditorController->deleteSavedDoc();
// 첨부된 파일이 있으면 현재 글 번호로 옮김
$module_srl = Context::get('module_srl');
$oFileController = &getController('file');
$oFileController->moveFile($saved_doc->document_srl, $module_srl, $upload_target_srl);
// 원본 글이 저장되어 있지 않은 글일 경우 첨부된 파일이 있으면 현재 글 번호로 옮김
$oDocumentModel = &getModel('document');
$document = $oDocumentModel->getDocument($saved_doc->document_srl);
if($document->document_srl != $saved_doc->document_srl) {
$module_srl = Context::get('module_srl');
$oFileController = &getController('file');
$oFileController->moveFile($saved_doc->document_srl, $module_srl, $upload_target_srl);
}
return $saved_doc;
}