Merge #939 댓글에 대한 추천, 비추천시 증감할 포인트 별도 설정 기능 및 포인트 변동 구현 by sejin7940

* pr/939:
  Update point.admin.controller.php
  Update module_config.html
  Update point.view.php
  Update point.admin.controller.php
  Update point_module_config.html
  Update point.controller.php
  Update config.html
  Update point.class.php

Conflicts:
	modules/point/point.admin.controller.php
	modules/point/point.class.php
This commit is contained in:
Kijin Sung 2015-10-08 14:05:57 +09:00
commit a215c41503
7 changed files with 88 additions and 10 deletions

View file

@ -459,15 +459,32 @@ class pointController extends point
if( $obj->point > 0 )
{
$point = $module_config['voted'];
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted;
if($obj->comment_srl)
{
$point = $module_config['voted_comment'];
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted_comment;
}
else
{
$point = $module_config['voted'];
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted;
}
}
else
{
$point = $module_config['blamed'];
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed;
if($obj->comment_srl)
{
$point = $module_config['blamed_comment'];
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed_comment;
}
else
{
$point = $module_config['blamed'];
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed;
}
}
if(!$point) return new Object();
// Increase the point
$cur_point += $point;