git-svn-id: http://xe-core.googlecode.com/svn/trunk@1660 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-19 06:54:39 +00:00
parent ab8f8953e2
commit 3dca0c1c37

View file

@ -150,11 +150,13 @@
}
function getCommentCount() {
if(!$this->isGranted() && $this->isSecret()) return 0;
return $this->get('comment_count');
}
function getComments() {
if(!$this->allowComment() || !$this->get('comment_count')) return;
if(!$this->isGranted() && $this->isSecret()) return;
$oCommentModel = &getModel('comment');
return $oCommentModel->getCommentList($this->document_srl, $is_admin);