Update point.controller.php

This commit is contained in:
sejin7940 2014-08-30 20:48:12 +09:00
parent 6ca19f0dec
commit 717ab0a8ab

View file

@ -456,15 +456,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;