mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
Update point.controller.php
This commit is contained in:
parent
6ca19f0dec
commit
717ab0a8ab
1 changed files with 21 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue