Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Fix deprecated render twig function
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Mar 27, 2013
1 parent 89f2df2 commit 46ee989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/views/Post/view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
{{ post.content|raw }}
</div>

{% render 'SonataNewsBundle:Post:comments' with {'postId': post.id} %}
{% render(controller('SonataNewsBundle:Post:comments', {'postId': post.id})) %}

{% if post.iscommentable %}
{% render 'SonataNewsBundle:Post:addCommentForm' with {
{% render(controller('SonataNewsBundle:Post:addCommentForm', {
'postId': post.id,
'form': form
} %}
})) %}
{% else %}
<div>
{{ 'message_comments_are_closed'|trans({}, 'SonataNewsBundle') }}
Expand Down

0 comments on commit 46ee989

Please sign in to comment.