mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1660 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ab8f8953e2
commit
3dca0c1c37
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue