Просмотр исходного кода

Merge branch 'unstable' into ie

bastien 13 лет назад
Родитель
Сommit
8f9fc013ae
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3 1
      src/Muzich/CommentBundle/Controller/CommentController.php

+ 3 - 1
src/Muzich/CommentBundle/Controller/CommentController.php Просмотреть файл

177
     $html = $this->render('MuzichCommentBundle:Comment:edit.html.twig', array(
177
     $html = $this->render('MuzichCommentBundle:Comment:edit.html.twig', array(
178
       'comment'     => $comment,
178
       'comment'     => $comment,
179
       'element_id'  => $element->getId(),
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
     ))->getContent();
183
     ))->getContent();
182
     // On retourne le tout
184
     // On retourne le tout
183
     return $this->jsonResponse(array(
185
     return $this->jsonResponse(array(