#360 엮인글 허용 설정 체크 보완

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3468 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-01-04 17:04:57 +00:00
parent 45a24f2dbd
commit 7b2b1c85a6

View file

@ -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;
}