1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 19:31:31 +02:00

Flextype Core: JsonParserTwigExtension renamed to JsonTwigExtension

This commit is contained in:
Awilum
2019-08-19 13:08:44 +03:00
parent 2dc9bf14bc
commit 6440b3d0b3

View File

@@ -20,7 +20,7 @@
{% if entry.fieldset %}
{% set fieldset_path = PATH_FIELDSETS ~ '/' ~ entry.fieldset ~ '.json' %}
{% if filesystem_has(fieldset_path) %}
{% set fieldset = json_parser_decode(filesystem_read(fieldset_path)) %}
{% set fieldset = json_decode(filesystem_read(fieldset_path)) %}
{% if fieldset.default_field %}
{% if entry[fieldset.default_field] != '' %}
{{ entry[fieldset.default_field] }}