소스 검색

Merge branch 'unstable' into ie

bastien 13 년 전
부모
커밋
8f9fc013ae
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/Muzich/CommentBundle/Controller/CommentController.php

+ 3 - 1
src/Muzich/CommentBundle/Controller/CommentController.php 파일 보기

@@ -177,7 +177,9 @@ class CommentController extends Controller
177 177
     $html = $this->render('MuzichCommentBundle:Comment:edit.html.twig', array(
178 178
       'comment'     => $comment,
179 179
       'element_id'  => $element->getId(),
180
-      'date'        => $date
180
+      'date'        => $date,
181
+      'following'   => $element->userFollowComments($this->getUserId()),
182
+      'own'         => ($this->getUserId() == $element->getOwner()->getId())
181 183
     ))->getContent();
182 184
     // On retourne le tout
183 185
     return $this->jsonResponse(array(