mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
issue 26 Document status change with config.
old version coding with hard coding git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8448 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0ba04bb1f7
commit
e3376c3c3a
8 changed files with 45 additions and 20 deletions
|
|
@ -61,7 +61,8 @@
|
|||
* @brief A trigger to add points to the member for creating a post
|
||||
**/
|
||||
function triggerInsertDocument(&$obj) {
|
||||
if($obj->status != 'TEMP')
|
||||
$oDocumentModel = &getModel('document');
|
||||
if($obj->status != $oDocumentModel->getConfigStatus('temp'))
|
||||
{
|
||||
$module_srl = $obj->module_srl;
|
||||
$member_srl = $obj->member_srl;
|
||||
|
|
@ -100,7 +101,7 @@
|
|||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
|
||||
// if status is TEMP or PUBLIC... give not point, only status is empty
|
||||
if($oDocument->get('status') == 'TEMP' && $obj->status != 'TEMP')
|
||||
if($oDocument->get('status') == $oDocumentModel->getConfigStatus('temp') && $obj->status != $oDocumentModel->getConfigStatus('temp'))
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue