mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
#360 엮인글 허용 설정 체크 보완
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3468 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
45a24f2dbd
commit
7b2b1c85a6
1 changed files with 7 additions and 3 deletions
|
|
@ -72,13 +72,17 @@
|
|||
}
|
||||
|
||||
function allowComment() {
|
||||
return $this->get('allow_comment') == 'Y' || !$this->isExists() ? true : false;
|
||||
return $this->get('allow_comment') == 'Y' && $this->isExists() ? true : false;
|
||||
}
|
||||
|
||||
function allowTrackback() {
|
||||
return $this->get('allow_trackback') == 'Y' || !$this->isExists() ? true : false;
|
||||
$module_srl = Context::get('module_srl');
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
$module_config = &$oTrackbackModel->getTrackbackModuleConfig($module_srl);
|
||||
if($module_config->enable_trackback == 'Y' && $this->get('allow_trackback') == 'Y' && $this->isExists()) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function isLocked() {
|
||||
return $this->get('lock_comment') == 'Y' ? true : false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue