mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 18:59:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@741 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6848735a30
commit
e71e466612
6 changed files with 66 additions and 3 deletions
|
|
@ -52,7 +52,6 @@
|
|||
} else {
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
debugPrint($args);
|
||||
|
||||
// 일단 이전 저장본 삭제
|
||||
$oDB = &DB::getInstance();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
/**
|
||||
* @brief 자동저장되어 있는 정보를 가져옴
|
||||
**/
|
||||
function getSavedDoc() {
|
||||
function getSavedDoc($upload_target_srl) {
|
||||
// 로그인 회원이면 member_srl, 아니면 ipaddress로 저장되어 있는 문서를 찾음
|
||||
if(Context::get('is_logged')) {
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
|
@ -28,6 +28,11 @@
|
|||
$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);
|
||||
|
||||
return $saved_doc;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
// 저장된 임시본이 있는지 검사
|
||||
if($enable_autosave) {
|
||||
$saved_doc = $oEditorModel->getSavedDoc();
|
||||
$saved_doc = $oEditorModel->getSavedDoc($upload_target_srl);
|
||||
Context::set('saved_doc', $saved_doc);
|
||||
}
|
||||
Context::set('enable_autosave', $enable_autosave);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue