consistency in twig methods

The method chill_custom_fields_is_empty take now the fields as first argument, and the customField as second argument, to be consistent with other twig methods.
This commit is contained in:
2015-12-28 00:54:38 +01:00
parent d2039893b3
commit 54391b02f3
3 changed files with 25 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
{%- endif -%}
{%- endif -%}
{% else %}
{%- if show_empty == true or (chill_custom_field_is_empty(customField, cFData) == false) -%}
{%- if show_empty == true or (chill_custom_field_is_empty(cFData, customField) == false) -%}
{%- if title is not empty -%}
{{ chill_custom_field_widget(cFData, title) }}
{%- set title = null -%}