mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
mid별 자동 저장, 방명록 스킨에 이상한 문자열 삭제
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6541 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4ac4a8cd21
commit
1b749490dd
10 changed files with 475 additions and 433 deletions
|
|
@ -333,6 +333,12 @@
|
|||
} else {
|
||||
$auto_save_args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
$auto_save_args->module_srl = Context::get('module_srl');
|
||||
// module_srl이 없으면 현재 모듈
|
||||
if(!$auto_save_args->module_srl) {
|
||||
$current_module_info = Context::get('current_module_info');
|
||||
$auto_save_args->module_srl = $current_module_info->module_srl;
|
||||
}
|
||||
|
||||
// DB에서 자동저장 데이터 추출
|
||||
$output = executeQuery('editor.getSavedDocument', $auto_save_args);
|
||||
|
|
@ -349,9 +355,9 @@
|
|||
// 자동저장 데이터에 문서번호가 있고 이 번호에 파일이 있다면 파일을 모두 이동하고
|
||||
// 해당 문서 번호를 editor_sequence로 세팅함
|
||||
if($saved_doc->document_srl && $upload_target_srl && !Context::get('document_srl')) {
|
||||
$module_srl = Context::get('module_srl');
|
||||
$saved_doc->module_srl = $auto_save_args->module_srl;
|
||||
$oFileController = &getController('file');
|
||||
$oFileController->moveFile($saved_doc->document_srl, $module_srl, $upload_target_srl);
|
||||
$oFileController->moveFile($saved_doc->document_srl, $saved_doc->module_srl, $upload_target_srl);
|
||||
}
|
||||
else if($upload_target_srl) $saved_doc->document_srl = $upload_target_srl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue