mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +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 )
|
if( $obj->point > 0 )
|
||||||
{
|
{
|
||||||
$point = $module_config['voted'];
|
if($obj->comment_srl)
|
||||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted;
|
{
|
||||||
|
$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
|
else
|
||||||
{
|
{
|
||||||
$point = $module_config['blamed'];
|
if($obj->comment_srl)
|
||||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed;
|
{
|
||||||
|
$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();
|
if(!$point) return new Object();
|
||||||
// Increase the point
|
// Increase the point
|
||||||
$cur_point += $point;
|
$cur_point += $point;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue