summaryrefslogtreecommitdiff
path: root/templates/mod/config-editor.html
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2021-07-06 19:44:38 +1000
committerAppleman1234 <applemansigloo@gmail.com>2021-07-06 19:44:38 +1000
commit99b74207d767bd7ce0d4aa1e93788da27d0698f6 (patch)
treedbc4dd1c118a4e89e257a04a45b5b591b54528c6 /templates/mod/config-editor.html
parentbae0a912c7b5aee2eb43bf1a138f40d60fdb2d0e (diff)
Fixes for counting Uncountable error in mod templates by using twig count explicitly
Diffstat (limited to 'templates/mod/config-editor.html')
-rw-r--r--templates/mod/config-editor.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mod/config-editor.html b/templates/mod/config-editor.html
index ebf4202b..411d55e6 100644
--- a/templates/mod/config-editor.html
+++ b/templates/mod/config-editor.html
@@ -23,7 +23,7 @@
<th>{% trans 'Description' %}</th>
</tr>
{% for var in conf if var.type != 'array' %}
- {% if var.name and var.name|length == 1 %}
+ {% if var.name|count == 1 %}
{% set name = 'cf_' ~ var.name %}
{% else %}
{% set name = 'cf_' ~ var.name|join('/') %}
@@ -31,7 +31,7 @@
<tr>
<th class="minimal">
- {% if var.name and var.name|length == 1 %}
+ {% if var.name|count == 1 %}
{{ var.name }}
{% else %}
{{ var.name|join(' &rarr; ') }}