mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
익명 게시판 사용시 글 수정이 되지 않던 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5994 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0e748f0d8c
commit
297b65d79e
1 changed files with 10 additions and 7 deletions
|
|
@ -85,13 +85,16 @@
|
|||
// 익명 사용시 글의 글쓴이 정보를 모두 제거
|
||||
if($this->module_info->use_anonymous == 'Y' && Context::get('is_logged')) {
|
||||
$logged_info = Context::get('logged_info');
|
||||
$oDocument = $oDocumentModel->getDocument($output->get('document_srl'));
|
||||
$obj = $oDocument->getObjectVars();
|
||||
$obj->member_srl = -1*$logged_info->member_srl;
|
||||
$obj->email_address = $obj->homepage = $obj->user_id = '';
|
||||
$obj->user_name = $obj->nick_name = 'anonymous';
|
||||
$output = executeQuery('document.updateDocument', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
$document_args->document_srl = $output->get('document_srl');
|
||||
$document = executeQuery('document.getDocument', $document_args);
|
||||
if($document->toBool() && $document->data) {
|
||||
$obj = $document->data;
|
||||
$obj->member_srl = -1*$logged_info->member_srl;
|
||||
$obj->email_address = $obj->homepage = $obj->user_id = '';
|
||||
$obj->user_name = $obj->nick_name = 'anonymous';
|
||||
$output = executeQuery('document.updateDocument', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
}
|
||||
|
||||
// 결과를 리턴
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue