mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
issue 27 comment status refactoring
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8460 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
23453c0aac
commit
e56c8ee2a1
12 changed files with 106 additions and 25 deletions
|
|
@ -90,7 +90,7 @@
|
|||
function allowComment() {
|
||||
if(!$this->isExists()) return true;
|
||||
|
||||
return $this->get('allow_comment') == 'Y' ? true : false;
|
||||
return $this->get('comment_status') == 'ALLOW' ? true : false;
|
||||
}
|
||||
|
||||
function allowTrackback() {
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
}
|
||||
|
||||
function isLocked() {
|
||||
return $this->get('lock_comment') == 'Y' ? true : false;
|
||||
return $this->get('comment_status') == 'ALLOW' ? false : true;
|
||||
}
|
||||
|
||||
function isEditable() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue