mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Don't double-subtract points when deleting document or comment with attached files
This commit is contained in:
parent
da2be81260
commit
0d2db40e02
1 changed files with 0 additions and 20 deletions
|
|
@ -265,16 +265,6 @@ class pointController extends point
|
|||
$cur_point -= $document_point;
|
||||
}
|
||||
|
||||
// Subtract points for attached files.
|
||||
if ($obj->uploaded_count > 0)
|
||||
{
|
||||
$attached_files_point = $this->_getModulePointConfig($module_srl, 'upload_file');
|
||||
if ($attached_files_point > 0)
|
||||
{
|
||||
$cur_point -= $attached_files_point * $obj->uploaded_count;
|
||||
}
|
||||
}
|
||||
|
||||
// Increase the point.
|
||||
$this->setPoint($member_srl, $cur_point);
|
||||
return new Object();
|
||||
|
|
@ -358,16 +348,6 @@ class pointController extends point
|
|||
$comment_point = $this->_getModulePointConfig($module_srl, 'insert_comment');
|
||||
$cur_point -= $comment_point;
|
||||
|
||||
// Subtract points for attached files.
|
||||
if ($obj->uploaded_count > 0)
|
||||
{
|
||||
$attached_files_point = $this->_getModulePointConfig($module_srl, 'upload_file');
|
||||
if ($attached_files_point > 0)
|
||||
{
|
||||
$cur_point -= $attached_files_point * $obj->uploaded_count;
|
||||
}
|
||||
}
|
||||
|
||||
// Increase the point.
|
||||
$this->setPoint($member_srl, $cur_point);
|
||||
return new Object();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue