mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Remove ArrayCollection as there is no benefits to use it.
Change twig from ArrayCollection to plain array.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{% set thumb_w = 70 %}
|
||||
{% set thumb_h = 70 %}
|
||||
|
||||
{% set thumbnail = record.subdefs.get('thumbnail') %}
|
||||
{% set thumbnail = record.subdefs.thumbnail|default(null) %}
|
||||
|
||||
{% if thumbnail is not none %}
|
||||
{% set thumb_w = thumbnail.width %}
|
||||
@@ -50,4 +50,3 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="PREVIEWTOOL"></div>
|
||||
|
Reference in New Issue
Block a user