mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +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()
|
function procBoardVoteDocument()
|
||||||
{
|
{
|
||||||
// generate document module controller object
|
// Check document_srl
|
||||||
$oDocumentController = DocumentController::getInstance();
|
$document_srl = intval(Context::get('document_srl'));
|
||||||
|
if (!$document_srl)
|
||||||
|
{
|
||||||
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
|
}
|
||||||
|
|
||||||
$document_srl = Context::get('document_srl');
|
// Pass to procDocumentVoteUp
|
||||||
return $oDocumentController->updateVotedCount($document_srl);
|
Context::set('target_srl', $document_srl);
|
||||||
|
$oDocumentController = DocumentController::getInstance();
|
||||||
|
return $oDocumentController->procDocumentVoteUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue