1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Fixes #581 Исправлено редактирование комментария

This commit is contained in:
Denis Shakhov 2014-12-09 20:34:08 +07:00
parent b7dd68de13
commit da5e2fa630

View file

@ -1887,14 +1887,14 @@ class ActionAjax extends Action
if ($this->Comment_UpdateComment($oComment)) {
$oViewerLocal = $this->Viewer_GetLocalViewer();
$oViewerLocal->Assign('oUserCurrent', $this->oUserCurrent);
$oViewerLocal->Assign('bOneComment', true, true);
$oViewerLocal->Assign('oneComment', true, true);
if ($oComment->getTargetType() == 'topic') {
$oViewerLocal->Assign('bShowFavourite', true, true);
$oViewerLocal->Assign('bShowVote', true, true);
$oViewerLocal->Assign('useFavourite', true, true);
$oViewerLocal->Assign('useVote', true, true);
}
$oViewerLocal->Assign('oComment', $oComment, true);
$oViewerLocal->Assign('comment', $oComment, true);
$sHtml = $oViewerLocal->Fetch($this->Comment_GetTemplateCommentByTarget($oComment->getTargetId(),
$oComment->getTargetType()));
$this->Viewer_AssignAjax('sHtml', $sHtml);