mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Pass procBoardVoteDocument() to procDocumentVoteUp(), not updateVotedCount()
오래된 액션인 procBoardVoteDocument()를 직접 호출할 경우, 라이믹스에서 새로 추가된 추천 관련 설정들이 적용되지 않는 문제 수정
This commit is contained in:
parent
ad7e0b0c93
commit
78f7942e40
1 changed files with 10 additions and 4 deletions
|
|
@ -413,11 +413,17 @@ class BoardController extends Board
|
|||
**/
|
||||
function procBoardVoteDocument()
|
||||
{
|
||||
// generate document module controller object
|
||||
$oDocumentController = DocumentController::getInstance();
|
||||
// Check document_srl
|
||||
$document_srl = intval(Context::get('document_srl'));
|
||||
if (!$document_srl)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
$document_srl = Context::get('document_srl');
|
||||
return $oDocumentController->updateVotedCount($document_srl);
|
||||
// Pass to procDocumentVoteUp
|
||||
Context::set('target_srl', $document_srl);
|
||||
$oDocumentController = DocumentController::getInstance();
|
||||
return $oDocumentController->procDocumentVoteUp();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue