Skip to content

Commit

Permalink
issues EC-CUBE#3392 コントローラー付きのブロックを設置するとエラーが発生します
Browse files Browse the repository at this point in the history
  • Loading branch information
kengo-kamon committed Aug 1, 2018
1 parent ae1fd82 commit e7d2691
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Eccube/Resource/template/default/block.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ file that was distributed with this source code.
{% for Block in Blocks %}
<!-- ▼{{ Block.name }} -->
{% if Block.use_controller %}
{% if app.config.http_cache.enabled %}
{{ render_esi(path('block_' ~ Block.file_name)) }}
{% else %}
{{ render(path('block_' ~ Block.file_name)) }}
{% endif %}
{{ render(path('block_' ~ Block.file_name)) }}
{% else %}
{{ include('Block/' ~ Block.file_name~ '.twig', ignore_missing = true) }}
{% endif %}
Expand Down

0 comments on commit e7d2691

Please sign in to comment.