Skip to content

Commit c5af1c8

Browse files
committedJan 29, 2013
EZP-20238 - Replace deprecated render Twig tag by the corresponding function
1 parent d245937 commit c5af1c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎Resources/views/page_footer.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% include "eZDemoBundle:footer:address.html.twig" with {'content': content} %}
1313
</div>
1414
<div class="span4 nav-collapse">
15-
{% render controller( "eZDemoBundle:Demo:latestContent", {'pathString': '/1/2/', 'contentTypeIdentifier': 'article', 'limit': '7', 'excludeLocations': [ content.contentInfo.mainLocationId ]} ), {'strategy': 'esi'} %}
15+
{{ render( controller( "eZDemoBundle:Demo:latestContent", {'pathString': '/1/2/', 'contentTypeIdentifier': 'article', 'limit': '7', 'excludeLocations': [ content.contentInfo.mainLocationId ]} ), {'strategy': 'esi'} ) }}
1616
</div>
1717
<div class="span4 nav-collapse">
1818
{% include "eZDemoBundle:footer:links.html.twig" with {'content': content} %}

‎Resources/views/pagelayout.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="navbar main-navi">
2424
<!-- Top menu area: START -->
2525
{% block topMenu %}
26-
{% render controller( "eZDemoBundle:Demo:topMenu", {'locationId': 2, 'excludeContentTypes': [ 'article' ]} ), {'strategy': 'esi'} %}
26+
{{ render( controller( "eZDemoBundle:Demo:topMenu", {'locationId': 2, 'excludeContentTypes': [ 'article' ]} ), {'strategy': 'esi'} ) }}
2727
{% endblock %}
2828
<!-- Top menu area: END -->
2929
{# TODO: implement logic to control path visibility #}
@@ -46,7 +46,7 @@
4646
</div>
4747
<!-- Footer area: START -->
4848
{% block footer %}
49-
{% render controller( "eZDemoBundle:Demo:footer", {'locationId': 60} ), {'strategy': 'esi'} %}
49+
{{ render( controller( "eZDemoBundle:Demo:footer", {'locationId': 60} ), {'strategy': 'esi'} ) }}
5050
{% endblock %}
5151
<!-- Footer area: END -->
5252
</div>

0 commit comments

Comments
 (0)