mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 2303 add a mobile content in type of ARTICLE page.
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11126 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6cfdca4604
commit
cdbdef7adc
14 changed files with 189 additions and 83 deletions
|
|
@ -289,19 +289,30 @@
|
|||
$bAnonymous = false;
|
||||
|
||||
// 이미 존재하는 경우 수정
|
||||
if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl) {
|
||||
if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl)
|
||||
{
|
||||
$output = $oDocumentController->updateDocument($oDocument, $obj);
|
||||
$msg_code = 'success_updated';
|
||||
// 그렇지 않으면 신규 등록
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
if($obj->ismobile == 'Y')
|
||||
{
|
||||
$target = 'mdocument_srl';
|
||||
}
|
||||
else
|
||||
{
|
||||
$target = 'document_srl';
|
||||
}
|
||||
|
||||
$output = $oDocumentController->insertDocument($obj, $bAnonymous);
|
||||
$msg_code = 'success_registed';
|
||||
$obj->document_srl = $output->get('document_srl');
|
||||
$document_srl = $output->get('document_srl');
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$this->module_info->document_srl = $obj->document_srl;
|
||||
$this->module_info->{$target} = $document_srl;
|
||||
$oModuleController->updateModule($this->module_info);
|
||||
|
||||
}
|
||||
|
||||
// 오류 발생시 멈춤
|
||||
|
|
@ -310,6 +321,7 @@
|
|||
// 결과를 리턴
|
||||
$this->add('mid', Context::get('mid'));
|
||||
$this->add('document_srl', $output->get('document_srl'));
|
||||
$this->add('is_mobile', $obj->ismobile);
|
||||
|
||||
// 성공 메세지 등록
|
||||
$this->setMessage($msg_code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue