1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 04:31:23 +01:00

count➜length in confeditor for PHP7.2

This commit is contained in:
Fredrick Brennan 2018-10-12 14:47:38 +08:00
parent a2f938c814
commit 7514f31b36

View File

@ -1,7 +1,7 @@
<p> <p>
Any changes you make here will simply be appended to <code>{{ file }}</code>. If you wish to make the most of Tinyboard's customizability, you can instead edit the file directly. This page is intended for making quick changes and for those who don't have a basic understanding of PHP code. Any changes you make here will simply be appended to <code>{{ file }}</code>. If you wish to make the most of Tinyboard's customizability, you can instead edit the file directly. This page is intended for making quick changes and for those who don't have a basic understanding of PHP code.
</p> </p>
{% if boards|count %} {% if boards|length %}
<ul> <ul>
{% if board %} {% if board %}
<li><a href="?/config">Edit site-wide config</a></li> <li><a href="?/config">Edit site-wide config</a></li>
@ -23,7 +23,7 @@
<th>{% trans 'Description' %}</th> <th>{% trans 'Description' %}</th>
</tr> </tr>
{% for var in conf if var.type != 'array' %} {% for var in conf if var.type != 'array' %}
{% if var.name|count == 1 %} {% if var.name|length == 1 %}
{% set name = 'cf_' ~ var.name %} {% set name = 'cf_' ~ var.name %}
{% else %} {% else %}
{% set name = 'cf_' ~ var.name|join('/') %} {% set name = 'cf_' ~ var.name|join('/') %}
@ -31,7 +31,7 @@
<tr> <tr>
<th class="minimal"> <th class="minimal">
{% if var.name|count == 1 %} {% if var.name|length == 1 %}
{{ var.name }} {{ var.name }}
{% else %} {% else %}
{{ var.name|join(' &rarr; ') }} {{ var.name|join(' &rarr; ') }}