Fix #1290 기존 스킨의 호환성을 위한 메소드 추가

This commit is contained in:
BJRambo 2020-05-16 02:01:59 +09:00
parent 2b6d6b9925
commit ab712585d3
2 changed files with 10 additions and 0 deletions

View file

@ -315,6 +315,11 @@ class commentItem extends BaseObject
return escape($this->get('nick_name'), false);
}
function getVote()
{
return $this->getMyVote();
}
function getMyVote()
{
if(!$this->comment_srl) return false;

View file

@ -476,6 +476,11 @@ class documentItem extends BaseObject
return $cut_size ? cut_str($this->get('title'), $cut_size, $tail) : $this->get('title');
}
function getVoted()
{
return $this->getMyVote();
}
function getMyVote()
{
if(!$this->isExists())